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

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.
 

Detailed Description

Data to cache content that has been preprocessed and can be used in subsequent request to GenerativeService.

Member Data Documentation

◆ ExpireTime

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.

◆ TimeToLive

TimeSpan? Uralstech.UGemini.Models.Caching.GeminiCachedContentCreationData.TimeToLive = null

New TTL for this resource.

If not provided, ExpireTime must be provided.


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