Cloud AI Platform v1 API - Class Content (2.24.0)

public sealed class Content : IMessage<Content>, IEquatable<Content>, IDeepCloneable<Content>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1 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.

Inheritance

object > Content

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

Content()

public Content()

Content(Content)

public Content(Content other)
Parameter
NameDescription
otherContent

Properties

Parts

public RepeatedField<Part> Parts { get; }

Required. Ordered Parts that constitute a single message. Parts may have different IANA MIME types.

Property Value
TypeDescription
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
TypeDescription
string