Table of Contents

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

DateTime

DisplayName

The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.

public string DisplayName

Field Value

string

ExpireTime

Timestamp in UTC of when this resource is considered expired.

public DateTime ExpireTime

Field Value

DateTime

Model

The name of the Model to use for cached content Format: mod

public GeminiModelId Model

Field Value

GeminiModelId

Name

The resource name referring to the cached content. Format: cachedContents/{contentId}.

public string Name

Field Value

string

UpdateTime

When the cache entry was last updated in UTC time.

public DateTime UpdateTime

Field Value

DateTime

UsageMetadata

Metadata on the usage of the cached content.

public GeminiCachedContentUsageMetadata UsageMetadata

Field Value

GeminiCachedContentUsageMetadata