Table of Contents

Class Content

The base structured datatype containing multi-part content of a message. It's a ChatMessage in a demonic form.

public class Content
Inheritance
object
Content

Constructors

Content()

public Content()

Content(ChatRole, ContentPart[])

public Content(ChatRole role, ContentPart[] parts)

Parameters

role ChatRole
parts ContentPart[]

Content(ChatRole, string, Blob)

public Content(ChatRole role, string text, Blob inlineData = null)

Parameters

role ChatRole
text string
inlineData Blob

Properties

Parts

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

public ContentPart[] Parts { get; set; }

Property Value

ContentPart[]

Role

Optional. The producer of the content. Must be either User or ChatRole.Model. Useful to set for multi-turn conversations, otherwise can be left blank or unset.

public ChatRole Role { get; set; }

Property Value

ChatRole

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.