UGemini 2.0.1
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.