Class GeminiContent
The base structured datatype containing multi-part content of a message.
It's a Message in a demonic form.
Inheritance
GeminiContent
Assembly: Glitch9.AIDevKit.Provider.Google.dll
Syntax
public class GeminiContent
Constructors
|
Edit this page
View Source
GeminiContent()
Declaration
|
Edit this page
View Source
GeminiContent(ChatRole, Blob)
Declaration
public GeminiContent(ChatRole role, GeminiContentPart.Blob inlineData)
Parameters
|
Edit this page
View Source
GeminiContent(ChatRole, GeminiContentPart[])
Declaration
public GeminiContent(ChatRole role, GeminiContentPart[] parts)
Parameters
|
Edit this page
View Source
GeminiContent(ChatRole, string)
Declaration
public GeminiContent(ChatRole role, string text)
Parameters
|
Edit this page
View Source
GeminiContent(string)
Declaration
public GeminiContent(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Properties
|
Edit this page
View Source
Parts
Ordered Parts that constitute a single message. Parts may have different MIME types.
Declaration
[JsonProperty("parts")]
public GeminiContentPart[] Parts { get; set; }
Property Value
|
Edit this page
View Source
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.
Declaration
[JsonProperty("role")]
public ChatRole Role { get; set; }
Property Value
Methods
|
Edit this page
View Source
FunctionResponse(string, string)
Declaration
public static GeminiContent FunctionResponse(string functionName, string responseJson)
Parameters
| Type |
Name |
Description |
| string |
functionName |
|
| string |
responseJson |
|
Returns
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Extension Methods