Class GeminiCachedContent
Content that has been preprocessed and can be used in subsequent request to GenerativeService.
public class GeminiCachedContent
- Inheritance
-
GeminiCachedContent
- Extension Methods
Remarks
Cached content can be only used with model it was created for.
Fields
CreateTime
Creation time of the cache entry.
public DateTime CreateTime
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
Model
The name of the Model to use for cached content Format: mod
public GeminiModelId Model
Field Value
Name
The resource name referring to the cached content. Format: cachedContents/{contentId}.
public string Name
Field Value
UpdateTime
When the cache entry was last updated in UTC time.
public DateTime UpdateTime
Field Value
UsageMetadata
Metadata on the usage of the cached content.
public GeminiCachedContentUsageMetadata UsageMetadata