▼NUralstech | |
▼NUGemini | |
▼NAnswer | |
CGeminiAnswerRequest | Generates a grounded answer from the model |
CGeminiAnswerResponse | Response from the model for a grounded answer |
CGeminiGroundingAttributions | Attributions for sources that contributed to an answer |
CGeminiGroundingPassage | Passage included inline with a grounding configuration |
CGeminiGroundingPassages | A repeated list of passages |
CGeminiMetadataCondition | Filter condition applicable to a single key |
CGeminiMetadataFilter | User provided filter to limit retrieval based on Chunk or Document level metadata values |
CGeminiSemanticRetrieverConfig | Configuration for retrieving grounding content from a Corpus or Document created using the Semantic Retriever API |
▼NChat | |
CGeminiAttributionSourceId | Identifier for the source contributing to this attribution |
CGeminiCandidate | A response candidate generated from the model |
CGeminiChatRequest | Request to generate a response from the model |
CGeminiChatResponse | Response from the model supporting multiple candidates |
CGeminiCitationMetadata | A collection of source attributions for a piece of content |
CGeminiCitationSource | A citation to a source for a portion of a specific response |
CGeminiGenerationConfiguration | Configuration options for model generation and outputs. Not all parameters may be configurable for every model |
CGeminiGroundingAttribution | Attribution for a source that contributed to an answer |
CGeminiGroundingPassageId | Identifier for a part within a GroundingPassage |
CGeminiPromptFeedback | A set of the feedback metadata the prompt specified in GeminiChatResponse.Candidates |
CGeminiSafetyRating | Safety rating for a piece of content |
CGeminiSafetySettings | Safety setting, affecting the safety-blocking behavior |
CGeminiSemanticRetrieverChunk | Identifier for a Chunk retrieved via Semantic Retriever specified in the GenerateAnswerRequest using SemanticRetrieverConfig |
CGeminiUsageMetadata | Metadata on the generation request's token usage |
▼NEmbedding | |
CGeminiBatchEmbedContentRequest | Generates multiple embeddings from the model given input text in a synchronous call |
CGeminiBatchEmbedContentResponse | The response to a GeminiBatchEmbedContentRequest |
CGeminiContentEmbedding | A list of floats representing an embedding |
CGeminiEmbedContentRequest | Generates an embedding from the model |
CGeminiEmbedContentResponse | The response to a GeminiEmbedContentRequest |
▼NExceptions | |
CGeminiRequestException | Thrown when a Gemini API request fails |
▼NFileAPI | |
CGeminiFile | Metadata for a file uploaded to the File API |
CGeminiFileDeleteRequest | Requests the deletion of a file |
CGeminiFileGetRequest | Requests metadata for an existing file. Return type is GeminiFile |
CGeminiFileListRequest | Requests metadata for all existing files. Return type is GeminiFileListResponse |
CGeminiFileListResponse | The response for a GeminiFileListRequest call |
CGeminiFileUploadMetaData | Metadata for a GeminiFile to be uploaded |
CGeminiFileUploadRequest | Uploads a file to the Gemini File API. Response type is GeminiFileUploadResponse |
CGeminiFileUploadResponse | Response for a file upload request |
CGeminiFileVideoMetaData | Metadata for a video GeminiFile |
CGeminiTimeSpanJsonConverter | Custom JSON converter to convert a time string of a format like "10.334s" to a TimeSpan |
▼NModels | |
CGeminiModel | Information about a Generative Language Model |
CGeminiModelGetRequest | Gets information about a specific model. Return type is GeminiModel |
CGeminiModelId | Information about the unique ID of a Generative Language Model |
CGeminiModelIdStringConverter | Custom JSON converter to handle conversion of GeminiModelId to a single string value and vice-versa |
CGeminiModelListRequest | Requests metadata for all existing models. Return type is GeminiModelListResponse |
CGeminiModelListResponse | The response for a GeminiModelListResponse call |
▼NSchema | |
CGeminiSchema | The Schema object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object |
▼NStatus | |
CGeminiStatus | The GeminiStatus type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC |
CGeminiStatusDetails | An object containing fields of an arbitrary type |
▼NTokenCounting | |
CGeminiTokenCountRequest | Request to count tokens in given content |
CGeminiTokenCountResponse | A response from CountTokens |
▼NTools | |
▼NDeclaration | |
CGeminiFunctionCallingConfiguration | Configuration for specifying function calling behavior |
CGeminiFunctionDeclaration | Structured representation of a function declaration as defined by the OpenAPI 3.03 specification. + |
▼NExceptions | |
CGeminiRequestException | Thrown when a Gemini API request fails |
▼NFileAPI | |
CGeminiFile | Metadata for a file uploaded to the File API |
CGeminiFileDeleteRequest | Requests the deletion of a file |
CGeminiFileGetRequest | Requests metadata for an existing file. Return type is GeminiFile |
CGeminiFileListRequest | Requests metadata for all existing files. Return type is GeminiFileListResponse |
CGeminiFileListResponse | The response for a GeminiFileListRequest call |
CGeminiFileUploadMetaData | Metadata for a GeminiFile to be uploaded |
CGeminiFileUploadRequest | Uploads a file to the Gemini File API. Response type is GeminiFileUploadResponse |
CGeminiFileUploadResponse | Response for a file upload request |
CGeminiFileVideoMetaData | Metadata for a video GeminiFile |
▼NModels | |
▼NCaching | |
CGeminiCachedContent | Content that has been preprocessed and can be used in subsequent request to GenerativeService |
CGeminiCachedContentCreateRequest | Creates a GeminiCachedContent resource. Response type is GeminiCachedContent |
CGeminiCachedContentCreationData | Data to cache content that has been preprocessed and can be used in subsequent request to GenerativeService |
CGeminiCachedContentDeleteRequest | Requests for deletion of a cached content resource |
CGeminiCachedContentGetRequest | Requests metadata cached content. Return type is GeminiCachedContent |
CGeminiCachedContentListRequest | Requests metadata for all existing cached content. Return type is GeminiCachedContentListResponse |
CGeminiCachedContentListResponse | The response for a GeminiCachedContentListRequest call |
CGeminiCachedContentPatchData | Data to patch an existing cached content resource with new data |
CGeminiCachedContentPatchRequest | Patches a GeminiCachedContent resource. Response type is GeminiCachedContent |
CGeminiCachedContentUsageMetadata | Metadata on the usage of the cached content |
▼NContent | |
▼NAttribution | |
CGeminiAttributionSourceId | Identifier for the source contributing to this attribution |
CGeminiGroundingAttribution | Attribution for a source that contributed to an answer |
CGeminiGroundingPassageId | Identifier for a part within a GroundingPassage |
CGeminiSemanticRetrieverChunk | Identifier for a Chunk retrieved via Semantic Retriever specified in the GenerateAnswerRequest using SemanticRetrieverConfig |
▼NCitation | |
CGeminiCitationMetadata | A collection of source attributions for a piece of content |
CGeminiCitationSource | A citation to a source for a portion of a specific response |
CGeminiContent | The base structured datatype containing multi-part content of a message |
CGeminiContentBlob | Raw media bytes |
CGeminiContentPart | A datatype containing media that is part of a multi-part Content message. Must only contain one field at a time |
CGeminiFileData | URI based data |
CUnityExtensions | Extensions for Unity types |
▼NCountTokens | |
CGeminiTokenCountRequest | Request to count tokens in given content |
CGeminiTokenCountResponse | A response from CountTokens |
▼NEmbedding | |
CGeminiBatchEmbedContentRequest | Generates multiple embeddings from the model given input text in a synchronous call |
CGeminiBatchEmbedContentResponse | The response to a GeminiBatchEmbedContentRequest |
CGeminiContentEmbedding | A list of floats representing an embedding |
CGeminiEmbedContentRequest | Generates an embedding from the model |
CGeminiEmbedContentResponse | The response to a GeminiEmbedContentRequest |
▼NGeneration | |
▼NCandidate | |
CGeminiCandidate | A response candidate generated from the model |
CGeminiPromptFeedback | A set of the feedback metadata for the prompt specified in a generation request |
CGeminiUsageMetadata | Metadata on the generation request's token usage |
▼NChat | |
CGeminiChatRequest | Request to generate a response from the model |
CGeminiChatResponse | Response from the model supporting multiple candidates |
▼NQuestionAnswering | |
►NGrounding | |
►NSemanticRetriever | |
CGeminiAnswerRequest | Generates a grounded answer from the model |
CGeminiAnswerResponse | Response from the model for a grounded answer |
▼NSafety | |
CGeminiSafetyRating | Safety rating for a piece of content |
CGeminiSafetySettings | Safety setting, affecting the safety-blocking behavior |
▼NSchema | |
CGeminiSchema | The Schema object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object |
▼NTools | |
►NCodeExecution | |
►NDeclaration | |
CGeminiTool | Tool details that the model may use to generate response |
CGeminiToolConfiguration | The Tool configuration containing parameters for specifying Tool use in the request |
CGeminiFunctionCall | A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name with the arguments and their values |
CGeminiFunctionResponse | The result output from a GeminiFunctionCall that contains a string representing the Declaration.GeminiFunctionDeclaration.Name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a GeminiFunctionCall made based on model prediction |
CGeminiFunctionResponseContent | The response of a Gemini function call. Based on the Protocol Buffer Struct type |
▼NUtils | |
▼NSingleton | |
CSingleton | Utility class to make inheriting types singletons |
▼NWeb | |
CWebRequestHelper | Extensions for the UnityWebRequest type |
CEnumExtensions | Extensions for Enum type objects |
CGeminiContent | The base structured datatype containing multi-part content of a message |
CGeminiContentBlob | Raw media bytes |
CGeminiContentPart | A datatype containing media that is part of a multi-part Content message. Must only contain one field at a time |
CGeminiFileData | URI based data |
CGeminiManager | The class for accessing the Gemini API! |
CGeminiRequestMetadata | Metadata about a computation request |
CIAppendableData | An interface for data that is to be appended to at runtime |
CIGeminiDeleteRequest | All Gemini API DELETE requests must inherit from this interface |
CIGeminiGetRequest | All Gemini API GET requests must inherit from this interface |
CIGeminiMultiPartPostRequest | All Gemini API POST requests with multi-part data must inherit from this interface |
CIGeminiPostRequest | All Gemini API POST requests must inherit from this interface |
CIGeminiRequest | All Gemini API requests must inherit from this interface |
CIGeminiStreamablePostRequest | All streamed Gemini API POST requests must inherit from this interface |
CUnityExtensions | Extensions for Unity types |
CGeminiFunctionCall | A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name with the arguments and their values |
CGeminiFunctionResponse | The result output from a GeminiFunctionCall that contains a string representing the Declaration.GeminiFunctionDeclaration.Name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a GeminiFunctionCall made based on model prediction |
CGeminiFunctionResponseContent | The response of a Gemini function call. Based on the Protocol Buffer Struct type |
CGeminiGenerationConfiguration | Configuration options for model generation and outputs. Not all parameters may be configurable for every model |
CGeminiModel | Information about a Generative Language Model |
CGeminiModelGetRequest | Gets information about a specific model. Return type is GeminiModel |
CGeminiModelId | Information about the unique ID of a Generative Language Model |
CGeminiModelIdStringConverter | Custom JSON converter to handle conversion of GeminiModelId to a single string value and vice-versa |
CGeminiModelListRequest | Requests metadata for all existing models. Return type is GeminiModelListResponse |
CGeminiModelListResponse | The response for a GeminiModelListRequest call |
▼NStatus | |
CGeminiStatus | The GeminiStatus type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC |
CGeminiStatusDetails | An object containing fields of an arbitrary type |
▼NUtils | |
▼NSingleton | |
CSingleton | Utility class to make inheriting types singletons |
▼NWeb | |
CWebRequestHelper | Extensions for the UnityWebRequest type |
CGeminiContentTypeExtensions | Extensions for Enum type objects |
CGeminiManager | The class for accessing the Gemini API! |
CGeminiRequestMetadata | Metadata about a computation request |
CGeminiSecondsToTimeSpanJsonConverter | Custom JSON converter to convert a time string of a format like "10.334s" to a TimeSpan |
CIAppendableData | An interface for data that is to be appended to at runtime |
CIGeminiDeleteRequest | All Gemini API DELETE requests must inherit from this interface |
CIGeminiGetRequest | All Gemini API GET requests must inherit from this interface |
CIGeminiMultiPartPostRequest | All Gemini API POST requests with multi-part data must inherit from this interface |
CIGeminiPatchRequest | All Gemini API PATCH requests must inherit from this interface |
CIGeminiPostRequest | All Gemini API POST requests must inherit from this interface |
CIGeminiRequest | All Gemini API requests must inherit from this interface |
CIGeminiStreamablePostRequest | All streamed Gemini API POST requests must inherit from this interface |
- UGemini 1.4.0
-
- A C# wrapper for the Google Gemini API.
- |
-
This is the complete list of members for Uralstech.UGemini.Answer.GeminiAnswerRequest, including all inherited members.
-
- UGemini 1.4.0
-
- A C# wrapper for the Google Gemini API.
- |
-
This is the complete list of members for Uralstech.UGemini.Chat.GeminiChatRequest, including all inherited members.
-
- UGemini 1.4.0
-
- A C# wrapper for the Google Gemini API.
- |
-
This is the complete list of members for Uralstech.UGemini.Chat.GeminiSemanticRetrieverChunk, including all inherited members.
-Chunk | Uralstech.UGemini.Chat.GeminiSemanticRetrieverChunk | |
Source | Uralstech.UGemini.Chat.GeminiSemanticRetrieverChunk |
- UGemini 1.4.0
-
- A C# wrapper for the Google Gemini API.
- |
-
This is the complete list of members for Uralstech.UGemini.Embedding.GeminiEmbedContentResponse, including all inherited members.
-Embedding | Uralstech.UGemini.Embedding.GeminiEmbedContentResponse |
This is the complete list of members for Uralstech.UGemini.Exceptions.GeminiRequestException, including all inherited members.
Public Attributes |
Requests the deletion of a file.
+Only available in the beta API.
Creates a new GeminiFileGetRequest.
+Creates a new GeminiFileDeleteRequest.
+Only available in the beta API.
fileId | The ID of the file to delete. |
fileNameOrId | The name (format 'files/{fileId}') or ID of the file to delete. |
useBetaApi | Should the request use the Beta API? |
ApiVersion | Uralstech.UGemini.FileAPI.GeminiFileGetRequest | |
FileId | Uralstech.UGemini.FileAPI.GeminiFileGetRequest | |
GeminiFileGetRequest(string fileId, bool useBetaApi=true) | Uralstech.UGemini.FileAPI.GeminiFileGetRequest | |
GeminiFileGetRequest(string fileNameOrId, bool useBetaApi=true) | Uralstech.UGemini.FileAPI.GeminiFileGetRequest | |
GetEndpointUri(GeminiRequestMetadata metadata) | Uralstech.UGemini.FileAPI.GeminiFileGetRequest |
Public Attributes |
Requests metadata for an existing file. Return type is GeminiFile.
+Only available in the beta API.
Creates a new GeminiFileGetRequest.
+Only available in the beta API.
fileId | The ID of the file to get. |
fileNameOrId | The name (format 'files/{fileId}') or ID of the file to get. |
useBetaApi | Should the request use the Beta API? |
@@ -146,11 +146,12 @@
| | A page token from a previous GeminiFileListRequest call. | | |
Requests metadata for all existing files. Return type is GeminiFileListResponse.
+Only available in the beta API.
Creates a new GeminiFileGetRequest.
+Creates a new GeminiFileListRequest.
+Only available in the beta API.
useBetaApi | Should the request use the Beta API? |
- UGemini 1.4.0
+ UGemini 2.0.0
A C# wrapper for the Google Gemini API.
|
diff --git a/docs/class_uralstech_1_1_u_gemini_1_1_file_a_p_i_1_1_gemini_file_list_response.html b/docs/class_uralstech_1_1_u_gemini_1_1_file_a_p_i_1_1_gemini_file_list_response.html
index ee6fe477..b6de97bd 100644
--- a/docs/class_uralstech_1_1_u_gemini_1_1_file_a_p_i_1_1_gemini_file_list_response.html
+++ b/docs/class_uralstech_1_1_u_gemini_1_1_file_a_p_i_1_1_gemini_file_list_response.html
@@ -27,7 +27,7 @@
- UGemini 1.4.0
+ UGemini 2.0.0
A C# wrapper for the Google Gemini API.
|
@@ -115,13 +115,13 @@
|
string | NextPageToken |
A token that can be sent as a GeminiFileListRequest.PageToken into a subsequent GeminiFileListRequest call. | |
A token that can be sent as a GeminiFileListRequest.PageToken into a subsequent GeminiFileListRequest call. | |
The response for a GeminiFileListRequest call.
The GeminiFileUploadRequest resource name. This does not work right now.
+The GeminiFileUploadRequest resource name, in format "files/{fileId}".
The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-).
The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: files/123-456
Public Attributes | |
-GeminiFileUploadMetaData | File |
Metadata for the GeminiFile to be uploaded. | File = null | +
Optional metadata for the GeminiFile to be uploaded. | |
string | MimeType |
The IANA standard MIME type of the GeminiFileUploadRequest. | |
+string | MimeType |
The IANA standard MIME type of the GeminiFileUploadRequest. | |
byte[] | RawData |
Uploads a file to the Gemini File API. Response type is GeminiFileUploadResponse.
-This feature is currently being worked on and is unstable.
+Only available in the beta API.
Uralstech.UGemini.FileAPI.GeminiFileUploadRequest.GeminiFileUploadRequest | +( | +GeminiContentType | contentType, | +
+ | + | bool | useBetaApi = true ) | +
Creates a new GeminiFileUploadRequest.
+Only available in the beta API.
+contentType | The content type of the data. |
useBetaApi | Should the request use the Beta API? |
string Uralstech.UGemini.FileAPI.GeminiFileUploadRequest.MimeType | -
The IANA standard MIME type of the GeminiFileUploadRequest.
-You can use EnumExtensions.MimeType(GeminiContentType) to convert GeminiContentType values to their string MIME type, like: GeminiContentType.ImagePNG.MimeType()
Response for a file upload request.
Metadata for a video GeminiFile.
- UGemini 1.4.0
-
- A C# wrapper for the Google Gemini API.
- |
-
This is the complete list of members for Uralstech.UGemini.FileAPI.GeminiTimeSpanJsonConverter, including all inherited members.
-ReadJson(JsonReader reader, Type objectType, TimeSpan existingValue, bool hasExistingValue, JsonSerializer serializer) | Uralstech.UGemini.FileAPI.GeminiTimeSpanJsonConverter | |
WriteJson(JsonWriter writer, TimeSpan value, JsonSerializer serializer) | Uralstech.UGemini.FileAPI.GeminiTimeSpanJsonConverter |
This is the complete list of members for Uralstech.UGemini.GeminiFileData, including all inherited members.
+This is the complete list of members for Uralstech.UGemini.GeminiContentTypeExtensions, including all inherited members.
FileUri | Uralstech.UGemini.GeminiFileData | |
MimeType | Uralstech.UGemini.GeminiFileData | |
ContentType(this string mimeType) | Uralstech.UGemini.GeminiContentTypeExtensions | static |
MimeType(this GeminiContentType enumValue) | Uralstech.UGemini.GeminiContentTypeExtensions | static |
Static Public Member Functions | |
static string | MimeType (this GeminiContentType enumValue) |
Converts a GeminiContentType to its MIME type. | |
static GeminiContentType | ContentType (this string mimeType) |
Converts a string MIME type to a GeminiContentType. | |
static string | MimeType (this GeminiContentType enumValue) |
Converts a GeminiContentType to its MIME type. | |
static GeminiContentType | ContentType (this string mimeType) |
Converts a string MIME type to a GeminiContentType. | |
Extensions for Enum type objects.
static GeminiContentType Uralstech.UGemini.EnumExtensions.ContentType | +static GeminiContentType Uralstech.UGemini.GeminiContentTypeExtensions.ContentType | ( | this string | mimeType | ) | @@ -159,8 +159,8 @@ |
static string Uralstech.UGemini.EnumExtensions.MimeType | +static string Uralstech.UGemini.GeminiContentTypeExtensions.MimeType | ( | this GeminiContentType | enumValue | ) | @@ -200,14 +200,14 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- UGemini 1.4.0
+ UGemini 2.0.0
A C# wrapper for the Google Gemini API.
|
@@ -103,19 +103,14 @@
Compute< TRequest, TResponse >(TRequest request, RequestEndPoint endpoint, string model=Gemini1_5Flash, bool useBeta=false) | Uralstech.UGemini.GeminiManager | |
Gemini1_0Pro | Uralstech.UGemini.GeminiManager | static |
Gemini1_0ProVision | Uralstech.UGemini.GeminiManager | static |
Gemini1_5Flash | Uralstech.UGemini.GeminiManager | static |
Gemini1_5Pro | Uralstech.UGemini.GeminiManager | static |
Instance | Uralstech.UGemini.Utils.Singleton.Singleton< GeminiManager > | static |
Request(IGeminiDeleteRequest request) | Uralstech.UGemini.GeminiManager | |
Request< TResponse >(IGeminiPostRequest request) | Uralstech.UGemini.GeminiManager | |
Request< TResponse >(IGeminiMultiPartPostRequest request) | Uralstech.UGemini.GeminiManager | |
Request< TResponse >(IGeminiGetRequest request) | Uralstech.UGemini.GeminiManager | |
RequestEndPoint enum name | Uralstech.UGemini.GeminiManager | |
SetApiKey(string apiKey) | Uralstech.UGemini.GeminiManager | |
StreamRequest< TResponse >(IGeminiStreamablePostRequest< TResponse > request) | Uralstech.UGemini.GeminiManager | |
Instance | Uralstech.UGemini.Utils.Singleton.Singleton< GeminiManager > | static |
Request(IGeminiDeleteRequest request) | Uralstech.UGemini.GeminiManager | |
Request< TResponse >(IGeminiPostRequest request) | Uralstech.UGemini.GeminiManager | |
Request< TResponse >(IGeminiMultiPartPostRequest request) | Uralstech.UGemini.GeminiManager | |
Request< TResponse >(IGeminiGetRequest request) | Uralstech.UGemini.GeminiManager | |
Request< TResponse >(IGeminiPatchRequest request) | Uralstech.UGemini.GeminiManager | |
SetApiKey(string apiKey) | Uralstech.UGemini.GeminiManager | |
StreamRequest< TResponse >(IGeminiStreamablePostRequest< TResponse > request) | Uralstech.UGemini.GeminiManager |
-Public Types | |
enum | RequestEndPoint { Chat -, CountTokens - } |
The request endpoint. More... | |
Public Member Functions | |
void | SetApiKey (string apiKey) |
Sets the Gemini API key. | |
async Task< TResponse > | Request< TResponse > (IGeminiPostRequest request) |
Computes a request on the Gemini API. | |
Computes a POST request on the Gemini API. | |
async Task< TResponse > | Request< TResponse > (IGeminiMultiPartPostRequest request) |
Computes a request on the Gemini API. | |
Computes a multi-part POST request on the Gemini API. | |
async Task< TResponse > | Request< TResponse > (IGeminiGetRequest request) |
Computes a request on the Gemini API. | |
Computes a GET request on the Gemini API. | |
async Task | Request (IGeminiDeleteRequest request) |
Computes a request on the Gemini API. | |
Computes a DELETE request on the Gemini API. | |
async Task< TResponse > | Request< TResponse > (IGeminiPatchRequest request) |
Computes a PATCH request on the Gemini API. | |
async Task< TResponse > | StreamRequest< TResponse > (IGeminiStreamablePostRequest< TResponse > request) |
Computes a streaming request on the Gemini API. | |
Computes a streaming POST request on the Gemini API. | |
async Task< TResponse > | Compute< TRequest, TResponse > (TRequest request, RequestEndPoint endpoint, string model=Gemini1_5Flash, bool useBeta=false) |
Computes a request in the Gemini API. | |
-Static Public Attributes | |
const string | Gemini1_0ProVision = "gemini-pro-vision" |
Note: Gemini 1.0 Pro Vision is deprecated. Use 1.5 Flash or 1.5 Pro instead. - - Gemini 1.0 Pro Vision is a performance-optimized multimodal model that can perform visual-related tasks. - For example, 1.0 Pro Vision can generate image descriptions, identify objects present in images, provide - information about places or objects present in images, and more. - - Supports image, video and text input. | |
const string | Gemini1_0Pro = "gemini-1.0-pro" |
Gemini 1.0 Pro is an NLP model that handles tasks like multi-turn text and code chat, and code generation. - - Supports text input. | |
const string | Gemini1_5Pro = "gemini-1.5-pro" |
Gemini 1.5 Pro is a mid-size multimodal model that is optimized for a wide-range of reasoning tasks. - 1.5 Pro can process large amounts of data at once, including 2 hours of video, 19 hours of audio, - codebases with 60,000 lines of code, or 2,000 pages of text. - - Supports audio, image, video and text input. | |
const string | Gemini1_5Flash = "gemini-1.5-flash" |
Gemini 1.5 Flash is a fast and versatile multimodal model for scaling across diverse tasks. - - Supports audio, image, video and text input. | |
Additional Inherited Members |
The class for accessing the Gemini API!
-enum Uralstech.UGemini.GeminiManager.RequestEndPoint | -
The request endpoint.
-Enumerator | |
---|---|
Chat | The chat endpoint. - - |
CountTokens | The token counting endpoint. - - |
async Task< TResponse > Uralstech.UGemini.GeminiManager.Compute< TRequest, TResponse > | +async Task Uralstech.UGemini.GeminiManager.Request | ( | -TRequest | request, | -||
- | - | RequestEndPoint | endpoint, | -|||
- | - | string | model = Gemini1_5Flash, | -|||
+ | IGeminiDeleteRequest | request | ) | - | bool | useBeta = false ) |
Computes a request in the Gemini API.
-TRequest | The request type (like GeminiChatRequest or GeminiCountRequest). - - This should correspond with TResponse , like: - GeminiChatRequest with GeminiChatResponse - GeminiCountRequest with GeminiCountResponse |
TResponse | The response type (like GeminiChatResponse or GeminiCountResponse). - - This should correspond with TRequest , like: - GeminiChatRequest with GeminiChatResponse - GeminiCountRequest with GeminiCountResponse |
Computes a DELETE request on the Gemini API.
request | The request data. |
endpoint | The request endpoint. |
model | The model to use. |
useBeta | Use the beta API? |
request | The request object. |
ArgumentException | Thrown if unexpected arguments are encountered. |
GeminiRequestException | Thrown when the API request fails. |
async Task Uralstech.UGemini.GeminiManager.Request | +async Task< TResponse > Uralstech.UGemini.GeminiManager.Request< TResponse > | ( | -IGeminiDeleteRequest | request | ) | +IGeminiGetRequest | request | ) |
Computes a request on the Gemini API.
+Computes a GET request on the Gemini API.
+TResponse | The response type. For example, a request of type Models.Generation.Chat.GeminiChatRequest corresponds to a response type of Models.Generation.Chat.GeminiChatResponse, and a request of type Models.CountTokens.GeminiTokenCountRequest corresponds to a response of type Models.CountTokens.GeminiTokenCountResponse. |
request | The request object. |
GeminiRequestException | Thrown when the API request fails. | ( | -IGeminiGetRequest | request | ) | +IGeminiMultiPartPostRequest | request | ) |
Computes a request on the Gemini API.
+Computes a multi-part POST request on the Gemini API.
TResponse | The response type. For example, a request of type Chat.GeminiChatRequest corresponds to a response type of Chat.GeminiChatResponse, and a request of type TokenCounting.GeminiTokenCountRequest corresponds to a response of type TokenCounting.GeminiTokenCountResponse. |
TResponse | The response type. For example, a request of type Models.Generation.Chat.GeminiChatRequest corresponds to a response type of Models.Generation.Chat.GeminiChatResponse, and a request of type Models.CountTokens.GeminiTokenCountRequest corresponds to a response of type Models.CountTokens.GeminiTokenCountResponse. |
GeminiRequestException | Thrown when the API request fails. | ( | -IGeminiMultiPartPostRequest | request | ) | +IGeminiPatchRequest | request | ) |
Computes a request on the Gemini API.
+Computes a PATCH request on the Gemini API.
TResponse | The response type. For example, a request of type Chat.GeminiChatRequest corresponds to a response type of Chat.GeminiChatResponse, and a request of type TokenCounting.GeminiTokenCountRequest corresponds to a response of type TokenCounting.GeminiTokenCountResponse. |
TResponse | The response type. For example, a request of type Models.Generation.Chat.GeminiChatRequest corresponds to a response type of Models.Generation.Chat.GeminiChatResponse, and a request of type Models.CountTokens.GeminiTokenCountRequest corresponds to a response of type Models.CountTokens.GeminiTokenCountResponse. |
Computes a request on the Gemini API.
+Computes a POST request on the Gemini API.
TResponse | The response type. For example, a request of type Chat.GeminiChatRequest corresponds to a response type of Chat.GeminiChatResponse, and a request of type TokenCounting.GeminiTokenCountRequest corresponds to a response of type TokenCounting.GeminiTokenCountResponse. |
TResponse | The response type. For example, a request of type Models.Generation.Chat.GeminiChatRequest corresponds to a response type of Models.Generation.Chat.GeminiChatResponse, and a request of type Models.CountTokens.GeminiTokenCountRequest corresponds to a response of type Models.CountTokens.GeminiTokenCountResponse. |
Computes a streaming request on the Gemini API.
+Computes a streaming POST request on the Gemini API.
Use callbacks in the request object to receive the streamed data.
TResponse | The response type. For example, a request of type Chat.GeminiChatRequest corresponds to a response type of Chat.GeminiChatResponse, and a request of type TokenCounting.GeminiTokenCountRequest corresponds to a response of type TokenCounting.GeminiTokenCountResponse. |
TResponse | The response type. For example, a request of type Models.Generation.Chat.GeminiChatRequest corresponds to a response type of Models.Generation.Chat.GeminiChatResponse, and a request of type Models.CountTokens.GeminiTokenCountRequest corresponds to a response of type Models.CountTokens.GeminiTokenCountResponse. |
GeminiRequestException | Thrown when the API request fails. |
-
|
- -static | -
Gemini 1.0 Pro is an NLP model that handles tasks like multi-turn text and code chat, and code generation.
-
- Supports text input.
-
|
- -static | -
Note: Gemini 1.0 Pro Vision is deprecated. Use 1.5 Flash or 1.5 Pro instead.
-
- Gemini 1.0 Pro Vision is a performance-optimized multimodal model that can perform visual-related tasks.
- For example, 1.0 Pro Vision can generate image descriptions, identify objects present in images, provide
- information about places or objects present in images, and more.
-
- Supports image, video and text input.
-
|
- -static | -
Gemini 1.5 Flash is a fast and versatile multimodal model for scaling across diverse tasks.
-
- Supports audio, image, video and text input.
-
|
- -static | -
Gemini 1.5 Pro is a mid-size multimodal model that is optimized for a wide-range of reasoning tasks.
- 1.5 Pro can process large amounts of data at once, including 2 hours of video, 19 hours of audio,
- codebases with 60,000 lines of code, or 2,000 pages of text.
-
- Supports audio, image, video and text input.
This is the complete list of members for Uralstech.UGemini.Tools.GeminiFunctionResponseContent, including all inherited members.
+This is the complete list of members for Uralstech.UGemini.GeminiSecondsToTimeSpanJsonConverter, including all inherited members.
Name | Uralstech.UGemini.Tools.GeminiFunctionResponseContent | |
ResponseData | Uralstech.UGemini.Tools.GeminiFunctionResponseContent | |
ReadJson(JsonReader reader, Type objectType, TimeSpan existingValue, bool hasExistingValue, JsonSerializer serializer) | Uralstech.UGemini.GeminiSecondsToTimeSpanJsonConverter | |
WriteJson(JsonWriter writer, TimeSpan value, JsonSerializer serializer) | Uralstech.UGemini.GeminiSecondsToTimeSpanJsonConverter |
Custom JSON converter to convert a time string of a format like "10.334s" to a TimeSpan. More...
Public Member Functions | |
+ | |
override TimeSpan | ReadJson (JsonReader reader, Type objectType, TimeSpan existingValue, bool hasExistingValue, JsonSerializer serializer) |
/> | |
+ | |
/> | |
override void | WriteJson (JsonWriter writer, TimeSpan value, JsonSerializer serializer) |
/> | |
/> | |
Custom JSON converter to convert a time string of a format like "10.334s" to a TimeSpan.
This is the complete list of members for Uralstech.UGemini.Schema.GeminiSchema, including all inherited members.
+This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContent, including all inherited members.
Description | Uralstech.UGemini.Schema.GeminiSchema | |
Enum | Uralstech.UGemini.Schema.GeminiSchema | |
Format | Uralstech.UGemini.Schema.GeminiSchema | |
Items | Uralstech.UGemini.Schema.GeminiSchema | |
Nullable | Uralstech.UGemini.Schema.GeminiSchema | |
Properties | Uralstech.UGemini.Schema.GeminiSchema | |
Required | Uralstech.UGemini.Schema.GeminiSchema | |
Type | Uralstech.UGemini.Schema.GeminiSchema | |
CreateTime | Uralstech.UGemini.Models.Caching.GeminiCachedContent | |
DisplayName | Uralstech.UGemini.Models.Caching.GeminiCachedContent | |
ExpireTime | Uralstech.UGemini.Models.Caching.GeminiCachedContent | |
Model | Uralstech.UGemini.Models.Caching.GeminiCachedContent | |
Name | Uralstech.UGemini.Models.Caching.GeminiCachedContent | |
UpdateTime | Uralstech.UGemini.Models.Caching.GeminiCachedContent | |
UsageMetadata | Uralstech.UGemini.Models.Caching.GeminiCachedContent |
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
Content that has been preprocessed and can be used in subsequent request to GenerativeService. + More...
++Public Attributes | |
+DateTime | CreateTime |
Creation time of the cache entry. | |
+DateTime | UpdateTime |
When the cache entry was last updated in UTC time. | |
+GeminiCachedContentUsageMetadata | UsageMetadata |
Metadata on the usage of the cached content. | |
+DateTime | ExpireTime |
Timestamp in UTC of when this resource is considered expired. | |
+string | Name = null |
The resource name referring to the cached content. Format: cachedContents/{contentId}. | |
+string | DisplayName = null |
The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. | |
+GeminiModelId | Model |
The name of the Model to use for cached content Format: mod. | |
Content that has been preprocessed and can be used in subsequent request to GenerativeService.
+Cached content can be only used with model it was created for.
+
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest, including all inherited members.
+ApiVersion | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest | |
Content | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest | |
ContentType | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest | |
GeminiCachedContentCreateRequest(GeminiCachedContentCreationData content, bool useBetaApi=true) | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest | |
GetEndpointUri(GeminiRequestMetadata metadata) | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest | |
GetUtf8EncodedData() | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest |
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
Creates a GeminiCachedContent resource. Response type is GeminiCachedContent. + More...
++Public Member Functions | |||
string | GetEndpointUri (GeminiRequestMetadata metadata) | ||
Gets the URI to the API endpoint.
| |||
GeminiCachedContentCreateRequest (GeminiCachedContentCreationData content, bool useBetaApi=true) | |||
Creates a new GeminiCachedContentCreateRequest. | |||
string | GetUtf8EncodedData () | ||
Converts the request object to a UTF-8 encoded string.
| |||
+Public Attributes | |
+GeminiCachedContentCreationData | Content |
The content to be cached. | |
+string | ApiVersion |
The API version to use. | |
+Properties | |
string | ContentType [get] |
The MIME type of the request content. | |
Properties inherited from Uralstech.UGemini.IGeminiPostRequest |
Creates a GeminiCachedContent resource. Response type is GeminiCachedContent.
+Only available in the beta API.
+Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest.GeminiCachedContentCreateRequest | +( | +GeminiCachedContentCreationData | content, | +
+ | + | bool | useBetaApi = true ) | +
Creates a new GeminiCachedContentCreateRequest.
+Only available in the beta API.
+content | The content to cache. |
useBetaApi | Should the request use the Beta API? |
string Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest.GetEndpointUri | +( | +GeminiRequestMetadata | metadata | ) | ++ |
Gets the URI to the API endpoint.
metadata | The metadata of the request to be carried out on the URI. |
Implements Uralstech.UGemini.IGeminiRequest.
+ +string Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest.GetUtf8EncodedData | +( | +) | ++ |
Converts the request object to a UTF-8 encoded string.
Implements Uralstech.UGemini.IGeminiPostRequest.
+ +
+
|
+ +get | +
The MIME type of the request content.
+ +Implements Uralstech.UGemini.IGeminiPostRequest.
+ +
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData, including all inherited members.
+Contents | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData | |
DisplayName | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData | |
ExpireTime | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData | |
Model | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData | |
SystemInstruction | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData | |
TimeToLive | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData | |
ToolConfig | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData | |
Tools | Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData |
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
Data to cache content that has been preprocessed and can be used in subsequent request to GenerativeService. + More...
++Public Attributes | |
+GeminiContent[] | Contents = null |
The content to cache. | |
+GeminiTool[] | Tools = null |
A list of Tools the model may use to generate the next response. | |
DateTime? | ExpireTime = null |
Timestamp in UTC of when this resource is considered expired. | |
TimeSpan? | TimeToLive = null |
New TTL for this resource. | |
+string | DisplayName = null |
The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. | |
+GeminiModelId | Model |
The name of the Model to use for cached content. | |
+GeminiContent | SystemInstruction = null |
Developer set system instruction. Currently text only. | |
+GeminiToolConfiguration | ToolConfig = null |
This config is shared for all tools. | |
Data to cache content that has been preprocessed and can be used in subsequent request to GenerativeService.
+DateTime? Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData.ExpireTime = null | +
Timestamp in UTC of when this resource is considered expired.
+If not provided, TimeToLive must be provided.
+ +TimeSpan? Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData.TimeToLive = null | +
New TTL for this resource.
+If not provided, ExpireTime must be provided.
+ +
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContentDeleteRequest, including all inherited members.
+ApiVersion | Uralstech.UGemini.Models.Caching.GeminiCachedContentDeleteRequest | |
ContentId | Uralstech.UGemini.Models.Caching.GeminiCachedContentDeleteRequest | |
GeminiCachedContentDeleteRequest(string cachedContentIdOrName, bool useBetaApi=true) | Uralstech.UGemini.Models.Caching.GeminiCachedContentDeleteRequest | |
GetEndpointUri(GeminiRequestMetadata metadata) | Uralstech.UGemini.Models.Caching.GeminiCachedContentDeleteRequest |
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
Requests for deletion of a cached content resource. + More...
++Public Member Functions | |||
string | GetEndpointUri (GeminiRequestMetadata metadata) | ||
Gets the URI to the API endpoint.
| |||
GeminiCachedContentDeleteRequest (string cachedContentIdOrName, bool useBetaApi=true) | |||
Creates a new GeminiCachedContentDeleteRequest. | |||
+Public Attributes | |
+string | ApiVersion |
The API version to use. | |
+string | ContentId |
The ID of the cached content. | |
Requests for deletion of a cached content resource.
+Only available in the beta API.
+Uralstech.UGemini.Models.Caching.GeminiCachedContentDeleteRequest.GeminiCachedContentDeleteRequest | +( | +string | cachedContentIdOrName, | +
+ | + | bool | useBetaApi = true ) | +
Creates a new GeminiCachedContentDeleteRequest.
+Only available in the beta API.
+cachedContentIdOrName | The ID or name (format cachedContents/{contentId}) of the cached content to delete. |
useBetaApi | Should the request use the Beta API? |
string Uralstech.UGemini.Models.Caching.GeminiCachedContentDeleteRequest.GetEndpointUri | +( | +GeminiRequestMetadata | metadata | ) | ++ |
Gets the URI to the API endpoint.
metadata | The metadata of the request to be carried out on the URI. |
Implements Uralstech.UGemini.IGeminiRequest.
+ +
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest, including all inherited members.
+ApiVersion | Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest | |
ContentId | Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest | |
GeminiCachedContentGetRequest(string cachedContentIdOrName, bool useBetaApi=true) | Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest | |
GetEndpointUri(GeminiRequestMetadata metadata) | Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest |
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
Requests metadata cached content. Return type is GeminiCachedContent. + More...
++Public Member Functions | |||
string | GetEndpointUri (GeminiRequestMetadata metadata) | ||
Gets the URI to the API endpoint.
| |||
GeminiCachedContentGetRequest (string cachedContentIdOrName, bool useBetaApi=true) | |||
Creates a new GeminiCachedContentGetRequest. | |||
+Public Attributes | |
+string | ApiVersion |
The API version to use. | |
+string | ContentId |
The ID of the cached content. | |
Requests metadata cached content. Return type is GeminiCachedContent.
+Only available in the beta API.
+Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest.GeminiCachedContentGetRequest | +( | +string | cachedContentIdOrName, | +
+ | + | bool | useBetaApi = true ) | +
Creates a new GeminiCachedContentGetRequest.
+Only available in the beta API.
+cachedContentIdOrName | The ID or name (format cachedContents/{contentId}) of the cached content to get. |
useBetaApi | Should the request use the Beta API? |
string Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest.GetEndpointUri | +( | +GeminiRequestMetadata | metadata | ) | ++ |
Gets the URI to the API endpoint.
metadata | The metadata of the request to be carried out on the URI. |
Implements Uralstech.UGemini.IGeminiRequest.
+ +This is the complete list of members for Uralstech.UGemini.Answer.GeminiSemanticRetrieverConfig, including all inherited members.
+This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest, including all inherited members.
MaxChunksCount | Uralstech.UGemini.Answer.GeminiSemanticRetrieverConfig | |
MetadataFilters | Uralstech.UGemini.Answer.GeminiSemanticRetrieverConfig | |
MinimumRelevanceScore | Uralstech.UGemini.Answer.GeminiSemanticRetrieverConfig | |
Query | Uralstech.UGemini.Answer.GeminiSemanticRetrieverConfig | |
Source | Uralstech.UGemini.Answer.GeminiSemanticRetrieverConfig | |
ApiVersion | Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest | |
GeminiCachedContentListRequest(bool useBetaApi=true) | Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest | |
GetEndpointUri(GeminiRequestMetadata metadata) | Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest | |
MaxResponseContents | Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest | |
PageToken | Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest |
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
Requests metadata for all existing cached content. Return type is GeminiCachedContentListResponse. + More...
++Public Member Functions | |||
string | GetEndpointUri (GeminiRequestMetadata metadata) | ||
Gets the URI to the API endpoint.
| |||
GeminiCachedContentListRequest (bool useBetaApi=true) | |||
Creates a new GeminiCachedContentListRequest. | |||
+Public Attributes | |
+string | ApiVersion |
The API version to use. | |
int | MaxResponseContents = 50 |
The maximum number of GeminiCachedContent objects to return (per page). | |
+string | PageToken = string.Empty |
A page token from a previous GeminiCachedContentListRequest call. | |
Requests metadata for all existing cached content. Return type is GeminiCachedContentListResponse.
+Only available in the beta API.
+Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest.GeminiCachedContentListRequest | +( | +bool | useBetaApi = true | ) | ++ |
Creates a new GeminiCachedContentListRequest.
+Only available in the beta API.
+useBetaApi | Should the request use the Beta API? |
string Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest.GetEndpointUri | +( | +GeminiRequestMetadata | metadata | ) | ++ |
Gets the URI to the API endpoint.
metadata | The metadata of the request to be carried out on the URI. |
Implements Uralstech.UGemini.IGeminiRequest.
+ +int Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest.MaxResponseContents = 50 | +
The maximum number of GeminiCachedContent objects to return (per page).
+This method returns at most 1000 GeminiCachedContent objects per page, even if you pass a larger MaxResponseContents.
+ +This is the complete list of members for Uralstech.UGemini.Answer.GeminiMetadataFilter, including all inherited members.
+This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContentListResponse, including all inherited members.
Conditions | Uralstech.UGemini.Answer.GeminiMetadataFilter | |
Key | Uralstech.UGemini.Answer.GeminiMetadataFilter | |
CachedContents | Uralstech.UGemini.Models.Caching.GeminiCachedContentListResponse | |
NextPageToken | Uralstech.UGemini.Models.Caching.GeminiCachedContentListResponse |
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
The response for a GeminiCachedContentListRequest call. + More...
++Public Attributes | |
+GeminiCachedContent[] | CachedContents = null |
The list of cached contents. | |
+string | NextPageToken = null |
A token that can be sent as a GeminiCachedContentListRequest.PageToken into a subsequent GeminiCachedContentListRequest call. | |
The response for a GeminiCachedContentListRequest call.
+This is the complete list of members for Uralstech.UGemini.Chat.GeminiAttributionSourceId, including all inherited members.
+This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchData, including all inherited members.
GroundingPassage | Uralstech.UGemini.Chat.GeminiAttributionSourceId | |
SemanticRetrieverChunk | Uralstech.UGemini.Chat.GeminiAttributionSourceId | |
ExpireTime | Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchData | |
TimeToLive | Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchData |
URI based data. +
Data to patch an existing cached content resource with new data. More...
Public Attributes | |
string | MimeType = null |
The IANA standard MIME type of the source data. | |
-string | FileUri |
URI. | |
DateTime? | ExpireTime = null |
Timestamp in UTC of when this resource is considered expired. | |
TimeSpan? | TimeToLive = null |
New TTL for this resource. | |
URI based data.
+Data to patch an existing cached content resource with new data.
string Uralstech.UGemini.GeminiFileData.MimeType = null | +DateTime? Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchData.ExpireTime = null |
The IANA standard MIME type of the source data.
-You can use EnumExtensions.MimeType(GeminiContentType) to convert GeminiContentType values to their string MIME type, like: GeminiContentType.ImagePNG.MimeType()
Timestamp in UTC of when this resource is considered expired.
+If not provided, TimeToLive must be provided.
+ +TimeSpan? Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchData.TimeToLive = null | +
New TTL for this resource.
+If not provided, ExpireTime must be provided.
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest, including all inherited members.
+ApiVersion | Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest | |
ContentId | Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest | |
ContentType | Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest | |
GeminiCachedContentPatchRequest(GeminiCachedContentPatchData patch, string cachedContentIdOrName, bool useBetaApi=true) | Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest | |
GetEndpointUri(GeminiRequestMetadata metadata) | Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest | |
GetUtf8EncodedData() | Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest | |
Patch | Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest |
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
Patches a GeminiCachedContent resource. Response type is GeminiCachedContent. + More...
++Public Member Functions | |||
string | GetEndpointUri (GeminiRequestMetadata metadata) | ||
Gets the URI to the API endpoint.
| |||
GeminiCachedContentPatchRequest (GeminiCachedContentPatchData patch, string cachedContentIdOrName, bool useBetaApi=true) | |||
Creates a new GeminiCachedContentPatchRequest. | |||
string | GetUtf8EncodedData () | ||
Converts the request object to a UTF-8 encoded string.
| |||
+Public Attributes | |
+GeminiCachedContentPatchData | Patch |
The patch data. | |
+string | ContentId |
The ID of the cached content. | |
+string | ApiVersion |
The API version to use. | |
+Properties | |
string | ContentType [get] |
The MIME type of the request content. | |
Properties inherited from Uralstech.UGemini.IGeminiPatchRequest |
Patches a GeminiCachedContent resource. Response type is GeminiCachedContent.
+Only available in the beta API.
+Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest.GeminiCachedContentPatchRequest | +( | +GeminiCachedContentPatchData | patch, | +
+ | + | string | cachedContentIdOrName, | +
+ | + | bool | useBetaApi = true ) | +
Creates a new GeminiCachedContentPatchRequest.
+Only available in the beta API.
+patch | The patch data. |
cachedContentIdOrName | The ID or name (format cachedContents/{contentId}) of the cached content to patch. |
useBetaApi | Should the request use the Beta API? |
string Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest.GetEndpointUri | +( | +GeminiRequestMetadata | metadata | ) | ++ |
Gets the URI to the API endpoint.
metadata | The metadata of the request to be carried out on the URI. |
Implements Uralstech.UGemini.IGeminiRequest.
+ +string Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest.GetUtf8EncodedData | +( | +) | ++ |
Converts the request object to a UTF-8 encoded string.
Implements Uralstech.UGemini.IGeminiPatchRequest.
+ +
+
|
+ +get | +
The MIME type of the request content.
+ +Implements Uralstech.UGemini.IGeminiPatchRequest.
+ +This is the complete list of members for Uralstech.UGemini.Chat.GeminiCitationMetadata, including all inherited members.
+This is the complete list of members for Uralstech.UGemini.Models.Caching.GeminiCachedContentUsageMetadata, including all inherited members.
CitationSources | Uralstech.UGemini.Chat.GeminiCitationMetadata | |
TotalTokenCount | Uralstech.UGemini.Models.Caching.GeminiCachedContentUsageMetadata |
A repeated list of passages. +
Metadata on the usage of the cached content. More...
Public Attributes | |
-GeminiGroundingPassage[] | Passages |
List of passages. | |
+int | TotalTokenCount |
Total number of tokens that the cached content consumes. | |
A repeated list of passages.
+Metadata on the usage of the cached content.
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Content.Attribution.GeminiAttributionSourceId, including all inherited members.
+GroundingPassage | Uralstech.UGemini.Models.Content.Attribution.GeminiAttributionSourceId | |
SemanticRetrieverChunk | Uralstech.UGemini.Models.Content.Attribution.GeminiAttributionSourceId |
Public Attributes | |
-GeminiGroundingPassageId | GroundingPassage |
Identifier for an inline passage. | |
-GeminiSemanticRetrieverChunk | SemanticRetrieverChunk |
Identifier for a Chunk fetched via Semantic Retriever. | |
+GeminiGroundingPassageId | GroundingPassage |
Identifier for an inline passage. | |
+GeminiSemanticRetrieverChunk | SemanticRetrieverChunk |
Identifier for a Chunk fetched via Semantic Retriever. | |
Identifier for the source contributing to this attribution.
This is the complete list of members for Uralstech.UGemini.Chat.GeminiSafetySettings, including all inherited members.
+This is the complete list of members for Uralstech.UGemini.Models.Content.Attribution.GeminiGroundingAttribution, including all inherited members.
Category | Uralstech.UGemini.Chat.GeminiSafetySettings | |
Threshold | Uralstech.UGemini.Chat.GeminiSafetySettings | |
Content | Uralstech.UGemini.Models.Content.Attribution.GeminiGroundingAttribution | |
SourceId | Uralstech.UGemini.Models.Content.Attribution.GeminiGroundingAttribution |
Attribution for a source that contributed to an answer. +
Attribution for a source that contributed to an answer. More...
Public Attributes | |
-GeminiAttributionSourceId | SourceId |
Identifier for the source contributing to this attribution. | |
-GeminiContent | Content |
Grounding source content that makes up this attribution. | |
+GeminiAttributionSourceId | SourceId |
Identifier for the source contributing to this attribution. | |
+GeminiContent | Content |
Grounding source content that makes up this attribution. | |
Attribution for a source that contributed to an answer.
+Attribution for a source that contributed to an answer.
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Content.Attribution.GeminiGroundingPassageId, including all inherited members.
+PartIndex | Uralstech.UGemini.Models.Content.Attribution.GeminiGroundingPassageId | |
PassageId | Uralstech.UGemini.Models.Content.Attribution.GeminiGroundingPassageId |
Public Attributes | |
+ | |
string | PassageId |
ID of the passage matching the GenerateAnswerRequest's GeminiAttributionSourceId.GroundingPassage. | |
+ | |
ID of the passage matching the GenerateAnswerRequest's GeminiAttributionSourceId.GroundingPassage. | |
int | PartIndex |
Index of the part within the GenerateAnswerRequest's GeminiAttributionSourceId.GroundingPassage. | |
Index of the part within the GenerateAnswerRequest's GeminiAttributionSourceId.GroundingPassage. | |
Identifier for a part within a GroundingPassage.
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Content.Attribution.GeminiSemanticRetrieverChunk, including all inherited members.
+Chunk | Uralstech.UGemini.Models.Content.Attribution.GeminiSemanticRetrieverChunk | |
Source | Uralstech.UGemini.Models.Content.Attribution.GeminiSemanticRetrieverChunk |
Public Attributes | |
+ | |
string | Source |
Name of the source matching the request's SemanticRetrieverConfig.source. Example: corpora/123 or corpora/123/documents/abc. | |
+ | |
Name of the source matching the request's SemanticRetrieverConfig.source. Example: corpora/123 or corpora/123/documents/abc. | |
string | Chunk |
Name of the Chunk containing the attributed text. Example: corpora/123/documents/abc/chunks/xyz. | |
Name of the Chunk containing the attributed text. Example: corpora/123/documents/abc/chunks/xyz. | |
Identifier for a Chunk retrieved via Semantic Retriever specified in the GenerateAnswerRequest using SemanticRetrieverConfig.
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Content.Citation.GeminiCitationMetadata, including all inherited members.
+CitationSources | Uralstech.UGemini.Models.Content.Citation.GeminiCitationMetadata |
Public Attributes | |
-GeminiCitationSource[] | CitationSources |
Citations to sources for a specific response. | |
+GeminiCitationSource[] | CitationSources |
Citations to sources for a specific response. | |
A collection of source attributions for a piece of content.
+ UGemini 2.0.0
+
+ A C# wrapper for the Google Gemini API.
+ |
+
This is the complete list of members for Uralstech.UGemini.Models.Content.Citation.GeminiCitationSource, including all inherited members.
+EndIndex | Uralstech.UGemini.Models.Content.Citation.GeminiCitationSource | |
License | Uralstech.UGemini.Models.Content.Citation.GeminiCitationSource | |
StartIndex | Uralstech.UGemini.Models.Content.Citation.GeminiCitationSource | |
Uri | Uralstech.UGemini.Models.Content.Citation.GeminiCitationSource |
Public Attributes | |
int | StartIndex |
Start of segment of the response that is attributed to this source. | |
+ | |
int | StartIndex |
Start of segment of the response that is attributed to this source. | |
int | EndIndex |
End of the attributed segment, exclusive. | |
+ | |
End of the attributed segment, exclusive. | |
string | Uri |
URI that is attributed as a source for a portion of the text. | |
+ | |
URI that is attributed as a source for a portion of the text. | |
string | License |
License for the GitHub project that is attributed as a source for segment. | |
License for the GitHub project that is attributed as a source for segment. | |
A citation to a source for a portion of a specific response.
int Uralstech.UGemini.Chat.GeminiCitationSource.StartIndex | +int Uralstech.UGemini.Models.Content.Citation.GeminiCitationSource.StartIndex |
This is the complete list of members for Uralstech.UGemini.GeminiContent, including all inherited members.
+This is the complete list of members for Uralstech.UGemini.Models.Content.GeminiContent, including all inherited members.
Append(GeminiContent data) | Uralstech.UGemini.GeminiContent | |
Append(GeminiContent data) | Uralstech.UGemini.Models.Content.GeminiContent | |
Uralstech::UGemini::IAppendableData< GeminiContent >.Append(T data) | Uralstech.UGemini.IAppendableData< GeminiContent > | |
GetContent(string message, GeminiRole role=GeminiRole.Unspecified) | Uralstech.UGemini.GeminiContent | static |
GetContent(string message, Texture2D image, GeminiRole role=GeminiRole.Unspecified) | Uralstech.UGemini.GeminiContent | static |
GetContent(string message, AudioClip audio, GeminiRole role=GeminiRole.Unspecified) | Uralstech.UGemini.GeminiContent | static |
GetContent(string message, GeminiFile file, GeminiRole role=GeminiRole.Unspecified) | Uralstech.UGemini.GeminiContent | static |
GetContent(GeminiFunctionCall functionCall) | Uralstech.UGemini.GeminiContent | static |
GetContent(GeminiFunctionResponse functionResponse) | Uralstech.UGemini.GeminiContent | static |
Parts | Uralstech.UGemini.GeminiContent | |
Role | Uralstech.UGemini.GeminiContent | |
GetContent(string message, GeminiRole role=GeminiRole.Unspecified) | Uralstech.UGemini.Models.Content.GeminiContent | static |
GetContent(string message, Texture2D image, GeminiRole role=GeminiRole.Unspecified) | Uralstech.UGemini.Models.Content.GeminiContent | static |
GetContent(string message, AudioClip audio, GeminiRole role=GeminiRole.Unspecified) | Uralstech.UGemini.Models.Content.GeminiContent | static |
GetContent(string message, GeminiFile file, GeminiRole role=GeminiRole.Unspecified) | Uralstech.UGemini.Models.Content.GeminiContent | static |
GetContent(GeminiFunctionCall functionCall) | Uralstech.UGemini.Models.Content.GeminiContent | static |
GetContent(GeminiFunctionResponse functionResponse) | Uralstech.UGemini.Models.Content.GeminiContent | static |
Parts | Uralstech.UGemini.Models.Content.GeminiContent | |
Role | Uralstech.UGemini.Models.Content.GeminiContent |
The base structured datatype containing multi-part content of a message. More...
Public Member Functions | |
-void | Append (GeminiContent data) |
+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. | |
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. | |
+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 GeminiContent Uralstech.UGemini.GeminiContent.GetContent | +static GeminiContent Uralstech.UGemini.Models.Content.GeminiContent.GetContent | ( | -GeminiFunctionCall | functionCall | ) | +GeminiFunctionCall | functionCall | ) |
Creates a new GeminiContent from a GeminiFunctionCall.
+Creates a new GeminiContent from a GeminiFunctionCall.
functionCall | The function call. |
static GeminiContent Uralstech.UGemini.GeminiContent.GetContent | +static GeminiContent Uralstech.UGemini.Models.Content.GeminiContent.GetContent | ( | -GeminiFunctionResponse | functionResponse | ) | +GeminiFunctionResponse | functionResponse | ) |
Creates a new GeminiContent from a GeminiFunctionResponse.
+Creates a new GeminiContent from a GeminiFunctionResponse.
functionResponse | The function response. |
static GeminiContent Uralstech.UGemini.GeminiContent.GetContent | +static GeminiContent Uralstech.UGemini.Models.Content.GeminiContent.GetContent | ( | string | message, | - | GeminiRole | role = GeminiRole::Unspecified ) | +GeminiRole | role = GeminiRole::Unspecified ) |
Creates a new GeminiContent from a role, message and AudioClip.
+Creates a new GeminiContent from a role, message and AudioClip.
Requires Utilities.Encoding.Wav.
static GeminiContent Uralstech.UGemini.GeminiContent.GetContent | +static GeminiContent Uralstech.UGemini.Models.Content.GeminiContent.GetContent | ( | string | message, | - | GeminiRole | role = GeminiRole::Unspecified ) | +GeminiRole | role = GeminiRole::Unspecified ) |
Creates a new GeminiContent from a role, message and GeminiFile.
+Creates a new GeminiContent from a role, message and GeminiFile.
role | The role of the content creator. |
static GeminiContent Uralstech.UGemini.GeminiContent.GetContent | +static GeminiContent Uralstech.UGemini.Models.Content.GeminiContent.GetContent | ( | string | message, | |
- | GeminiRole | role = GeminiRole::Unspecified ) | +GeminiRole | role = GeminiRole::Unspecified ) |
Creates a new GeminiContent from a role and message.
+Creates a new GeminiContent from a role and message.
role | The role of the content creator. |
static GeminiContent Uralstech.UGemini.GeminiContent.GetContent | +static GeminiContent Uralstech.UGemini.Models.Content.GeminiContent.GetContent | ( | string | message, | - | GeminiRole | role = GeminiRole::Unspecified ) | +GeminiRole | role = GeminiRole::Unspecified ) |
Creates a new GeminiContent from a role, message and Texture2D.
+Creates a new GeminiContent from a role, message and Texture2D.
role | The role of the content creator. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- UGemini 1.4.0
+ UGemini 2.0.0
A C# wrapper for the Google Gemini API.
|
@@ -71,7 +71,7 @@
Data | Uralstech.UGemini.GeminiContentBlob | |
GetContentBlob(AudioClip audio) | Uralstech.UGemini.GeminiContentBlob | static |
GetContentBlob(Texture2D image, bool useJPEG=false) | Uralstech.UGemini.GeminiContentBlob | static |
MimeType | Uralstech.UGemini.GeminiContentBlob | |
Data | Uralstech.UGemini.Models.Content.GeminiContentBlob | |
GetContentBlob(AudioClip audio) | Uralstech.UGemini.Models.Content.GeminiContentBlob | static |
GetContentBlob(Texture2D image, bool useJPEG=false) | Uralstech.UGemini.Models.Content.GeminiContentBlob | static |
MimeType | Uralstech.UGemini.Models.Content.GeminiContentBlob |
Static Public Member Functions | |
static GeminiContentBlob | GetContentBlob (AudioClip audio) |
Converts the given AudioClip to a GeminiContentBlob. | |
static GeminiContentBlob | GetContentBlob (Texture2D image, bool useJPEG=false) |
Converts the given Texture2D to a GeminiContentBlob. | |
static GeminiContentBlob | GetContentBlob (AudioClip audio) |
Converts the given AudioClip to a GeminiContentBlob. | |
static GeminiContentBlob | GetContentBlob (Texture2D image, bool useJPEG=false) |
Converts the given Texture2D to a GeminiContentBlob. | |
Public Attributes | |
GeminiContentType | MimeType |
The type of the data. | |
+ | |
GeminiContentType | MimeType |
The type of the data. | |
string | Data |
The base64 encoded bytes of data. | |
The base64 encoded bytes of data. | |
Raw media bytes.
-Text should not be sent as raw bytes, use the GeminiContentPart.Text> field.
+Text should not be sent as raw bytes, use the GeminiContentPart.Text field.
static GeminiContentBlob Uralstech.UGemini.GeminiContentBlob.GetContentBlob | +static GeminiContentBlob Uralstech.UGemini.Models.Content.GeminiContentBlob.GetContentBlob | ( | AudioClip | audio | ) | @@ -154,7 +154,7 @@ |