Class GeminiContentPart
A datatype containing media that is part of a multi-part GeminiContent message.
A GeminiContentPart consists of data which has an associated datatype.A GeminiContentPart can only contain one of the accepted types in GeminiContentPart.Data.
A GeminiContentPart must have a fixed IANA MIME type identifying the type and subtype of the media if the InlineData field is filled with raw bytes.
Inheritance
GeminiContentPart
Assembly: Glitch9.AIDevKit.Provider.Google.dll
Syntax
public class GeminiContentPart
Constructors
|
Edit this page
View Source
GeminiContentPart()
Declaration
public GeminiContentPart()
|
Edit this page
View Source
GeminiContentPart(FunctionResponse)
Declaration
public GeminiContentPart(FunctionResponse response)
Parameters
Properties
|
Edit this page
View Source
FileData
Declaration
[JsonProperty("fileData")]
public GoogleFileData FileData { get; set; }
Property Value
|
Edit this page
View Source
FunctionCall
A predicted FunctionCall returned from the model that contains a string
representing the Name with the arguments and their values.
Declaration
[JsonProperty("functionCall")]
[JsonConverter(typeof(GeminiFunctionCallConverter))]
public FunctionCall FunctionCall { get; set; }
Property Value
|
Edit this page
View Source
FunctionResponse
The result output of a FunctionCall that contains a string representing the Name
and a structured JSON object containing any output from the function is used as context to the model.
Declaration
[JsonProperty("functionResponse")]
public FunctionResponse FunctionResponse { get; set; }
Property Value
|
Edit this page
View Source
ImageContent
Declaration
[JsonIgnore]
public File<Texture2D> ImageContent { get; set; }
Property Value
| Type |
Description |
| File<Texture2D> |
|
|
Edit this page
View Source
InlineData
Declaration
[JsonProperty("inlineData")]
public GeminiContentPart.Blob InlineData { get; set; }
Property Value
|
Edit this page
View Source
IsImage
Declaration
[JsonIgnore]
public bool IsImage { get; }
Property Value
|
Edit this page
View Source
Text
Declaration
[JsonProperty("text")]
public string Text { get; set; }
Property Value
Methods
|
Edit this page
View Source
CreateFileUrl(string)
Declaration
public static GeminiContentPart CreateFileUrl(string fileUrl)
Parameters
| Type |
Name |
Description |
| string |
fileUrl |
|
Returns
|
Edit this page
View Source
CreateInlineData(string, MimeType)
Declaration
public static GeminiContentPart CreateInlineData(string base64File, MimeType mimeType)
Parameters
Returns
|
Edit this page
View Source
CreateText(string)
Declaration
public static GeminiContentPart CreateText(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
Extension Methods