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
-
objectContent
Constructors
Content()
public Content()
Content(ChatRole, ContentPart[])
public Content(ChatRole role, ContentPart[] parts)
Parameters
roleChatRolepartsContentPart[]
Content(ChatRole, string, Blob)
public Content(ChatRole role, string text, Blob inlineData = null)
Parameters
Properties
Parts
Ordered Parts that constitute a single message. Parts may have different MIME types.
public ContentPart[] Parts { get; set; }
Property Value
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
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.