Class GeminiCachedContentCreationData
Data to cache content that has been preprocessed and can be used in subsequent request to GenerativeService.
public class GeminiCachedContentCreationData
- Inheritance
-
GeminiCachedContentCreationData
- Extension Methods
Fields
Contents
The content to cache.
public GeminiContent[] Contents
Field Value
DisplayName
The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
public string DisplayName
Field Value
ExpireTime
Timestamp in UTC of when this resource is considered expired.
public DateTime? ExpireTime
Field Value
Remarks
If not provided, TimeToLive must be provided.
Model
The name of the Model to use for cached content.
public GeminiModelId Model
Field Value
SystemInstruction
Developer set system instruction. Currently text only.
public GeminiContent SystemInstruction
Field Value
TimeToLive
New TTL for this resource.
public TimeSpan? TimeToLive
Field Value
Remarks
If not provided, ExpireTime must be provided.
ToolConfig
This config is shared for all tools.
public GeminiToolConfiguration ToolConfig
Field Value
Tools
A list of Tools the model may use to generate the next response.
public GeminiTool[] Tools