UGemini 2.0.1
A C# wrapper for the Google Gemini API.
|
The base structured datatype containing multi-part content of a message. More...
Public Member Functions | |
void | Append (GeminiContent data) |
Public Member Functions inherited from Uralstech.UGemini.IAppendableData< GeminiContent > | |
void | Append (T data) |
Appends the data to the current IAppendableData<T>. | |
Static Public Member Functions | |
static GeminiContent | GetContent (string message, GeminiRole role=GeminiRole.Unspecified) |
Creates a new GeminiContent from a role and message. | |
static GeminiContent | GetContent (string message, Texture2D image, GeminiRole role=GeminiRole.Unspecified) |
Creates a new GeminiContent from a role, message and Texture2D. | |
static GeminiContent | GetContent (string message, AudioClip audio, GeminiRole role=GeminiRole.Unspecified) |
Creates a new GeminiContent from a role, message and AudioClip. | |
static GeminiContent | GetContent (string message, GeminiFile file, GeminiRole role=GeminiRole.Unspecified) |
Creates a new GeminiContent from a role, message and GeminiFile. | |
static GeminiContent | GetContent (GeminiFunctionCall functionCall) |
Creates a new GeminiContent from a GeminiFunctionCall. | |
static GeminiContent | GetContent (GeminiFunctionResponse functionResponse) |
Creates a new GeminiContent from a GeminiFunctionResponse. | |
Public Attributes | |
GeminiContentPart[] | Parts |
Ordered Parts that constitute a single message. Parts may have different MIME types. | |
GeminiRole | Role |
Optional. The producer of the content. | |
The base structured datatype containing multi-part content of a message.
|
static |
Creates a new GeminiContent from a GeminiFunctionCall.
functionCall | The function call. |
|
static |
Creates a new GeminiContent from a GeminiFunctionResponse.
functionResponse | The function response. |
|
static |
Creates a new GeminiContent from a role, message and AudioClip.
Requires Utilities.Encoding.Wav.
role | The role of the content creator. |
message | The message. |
audio | The audio clip. |
|
static |
Creates a new GeminiContent from a role, message and GeminiFile.
role | The role of the content creator. |
message | The message. |
file | The GeminiFile. |
|
static |
Creates a new GeminiContent from a role and message.
role | The role of the content creator. |
message | The message. |
|
static |
Creates a new GeminiContent from a role, message and Texture2D.
role | The role of the content creator. |
message | The message. |
image | The image texture. |