UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.Models.Embedding.GeminiBatchEmbedContentRequest Class Reference

Generates multiple embeddings from the model given input text in a synchronous call. More...

Inheritance diagram for Uralstech.UGemini.Models.Embedding.GeminiBatchEmbedContentRequest:
Uralstech.UGemini.IGeminiPostRequest Uralstech.UGemini.IGeminiRequest

Public Member Functions

string GetEndpointUri (GeminiRequestMetadata metadata)
 Gets the URI to the API endpoint.
Parameters
metadataThe metadata of the request to be carried out on the URI.
Returns
The URI.

 
 GeminiBatchEmbedContentRequest (GeminiModelId model, bool useBetaApi=false)
 Creates a new GeminiBatchEmbedContentRequest.
 
string GetUtf8EncodedData ()
 Converts the request object to a UTF-8 encoded string.
Returns
The string data.

 

Public Attributes

GeminiEmbedContentRequest[] Requests
 Embed requests for the batch. The model in each of these requests must match the model specified in Model.
 
GeminiModelId Model
 The model to use.
 
string ApiVersion
 The API version to use.
 

Properties

string ContentType [get]
 The MIME type of the request content.
 
- Properties inherited from Uralstech.UGemini.IGeminiPostRequest

Detailed Description

Generates multiple embeddings from the model given input text in a synchronous call.

Constructor & Destructor Documentation

◆ GeminiBatchEmbedContentRequest()

Uralstech.UGemini.Models.Embedding.GeminiBatchEmbedContentRequest.GeminiBatchEmbedContentRequest ( GeminiModelId model,
bool useBetaApi = false )

Creates a new GeminiBatchEmbedContentRequest.

Parameters
modelThe model to use.
useBetaApiShould the request use the Beta API?

Member Function Documentation

◆ GetEndpointUri()

string Uralstech.UGemini.Models.Embedding.GeminiBatchEmbedContentRequest.GetEndpointUri ( GeminiRequestMetadata metadata)

Gets the URI to the API endpoint.

Parameters
metadataThe metadata of the request to be carried out on the URI.
Returns
The URI.

Implements Uralstech.UGemini.IGeminiRequest.

◆ GetUtf8EncodedData()

string Uralstech.UGemini.Models.Embedding.GeminiBatchEmbedContentRequest.GetUtf8EncodedData ( )

Converts the request object to a UTF-8 encoded string.

Returns
The string data.

Implements Uralstech.UGemini.IGeminiPostRequest.

Property Documentation

◆ ContentType

string Uralstech.UGemini.Models.Embedding.GeminiBatchEmbedContentRequest.ContentType
get

The MIME type of the request content.

Implements Uralstech.UGemini.IGeminiPostRequest.


The documentation for this class was generated from the following file: