public sealed class Content : IMessage<Content>, IEquatable<Content>, IDeepCloneable<Content>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class Content.
The base structured datatype containing multi-part content of a message.
A Content includes a role field designating the producer of the Content
and a parts field containing multi-part data that contains the content of
the message turn.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eContent\u003c/code\u003e class in the Vertex AI v1beta1 API represents a structured datatype for multi-part message content.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a \u003ccode\u003erole\u003c/code\u003e property to identify the content's producer ('user' or 'model') and a \u003ccode\u003eParts\u003c/code\u003e property that contains the message's multi-part data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContent\u003c/code\u003e class implements several interfaces such as IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eThere are two versions available for the Content class, version 1.0.0-beta21 which is the latest, and version 1.0.0-beta20.\u003c/p\u003e\n"]]],[],null,[]]