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

Requests metadata cached content. Return type is GeminiCachedContent. More...

Inheritance diagram for Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest:
Uralstech.UGemini.IGeminiGetRequest 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.

 
 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.
 

Detailed Description

Requests metadata cached content. Return type is GeminiCachedContent.

Only available in the beta API.

Constructor & Destructor Documentation

◆ GeminiCachedContentGetRequest()

Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest.GeminiCachedContentGetRequest ( string cachedContentIdOrName,
bool useBetaApi = true )

Creates a new GeminiCachedContentGetRequest.

Only available in the beta API.

Parameters
cachedContentIdOrNameThe ID or name (format cachedContents/{contentId}) of the cached content to get.
useBetaApiShould the request use the Beta API?

Member Function Documentation

◆ GetEndpointUri()

string Uralstech.UGemini.Models.Caching.GeminiCachedContentGetRequest.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.


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