Class GeminiContent
The base structured datatype containing multi-part content of a message. It's a Message in a demonic form.
public class GeminiContent
- Inheritance
-
objectGeminiContent
Constructors
GeminiContent()
public GeminiContent()
GeminiContent(ChatRole, Blob)
public GeminiContent(ChatRole role, Blob inlineData)
Parameters
GeminiContent(ChatRole, GeminiContentPart[])
public GeminiContent(ChatRole role, GeminiContentPart[] parts)
Parameters
roleChatRolepartsGeminiContentPart[]
GeminiContent(ChatRole, string)
public GeminiContent(ChatRole role, string text)
Parameters
roleChatRoletextstring
Properties
Parts
Ordered Parts that constitute a single message. Parts may have different MIME types.
public GeminiContentPart[] 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.