Table of Contents

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

GeminiContent[]

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?

Remarks

If not provided, TimeToLive must be provided.

Model

The name of the Model to use for cached content.

public GeminiModelId Model

Field Value

GeminiModelId

SystemInstruction

Developer set system instruction. Currently text only.

public GeminiContent SystemInstruction

Field Value

GeminiContent

TimeToLive

New TTL for this resource.

public TimeSpan? TimeToLive

Field Value

TimeSpan?

Remarks

If not provided, ExpireTime must be provided.

ToolConfig

This config is shared for all tools.

public GeminiToolConfiguration ToolConfig

Field Value

GeminiToolConfiguration

Tools

A list of Tools the model may use to generate the next response.

public GeminiTool[] Tools

Field Value

GeminiTool[]