public sealed class Content : IMessage<Content>, IEquatable<Content>, IDeepCloneable<Content>, IBufferMessage, IMessageReference 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.
Namespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
Content()
public Content()Content(Content)
public Content(Content other)| Parameter | |
|---|---|
| Name | Description |
other |
Content |
Properties
Parts
public RepeatedField<Part> Parts { get; }Required. Ordered Parts that constitute a single message. Parts may have
different IANA MIME types.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldPart |
|
Role
public string Role { get; set; }Optional. The producer of the content. Must be either 'user' or 'model'.
Useful to set for multi-turn conversations, otherwise can be left blank or unset.
| Property Value | |
|---|---|
| Type | Description |
string |
|