Interface CreateCachedContentConfig

Optional configuration for cached content creation.

interface CreateCachedContentConfig {
    contents?: ContentListUnion;
    displayName?: string;
    expireTime?: string;
    httpOptions?: HttpOptions;
    systemInstruction?: ContentUnion;
    toolConfig?: ToolConfig;
    tools?: Tool[];
    ttl?: string;
}

Properties

contents?: ContentListUnion

The content to cache.

displayName?: string

The user-generated meaningful display name of the cached content.

expireTime?: string

Timestamp of when this resource is considered expired.

httpOptions?: HttpOptions

Used to override HTTP request options.

systemInstruction?: ContentUnion

Developer set system instruction.

toolConfig?: ToolConfig

Configuration for the tools to use. This config is shared for all tools.

tools?: Tool[]

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

ttl?: string

The TTL for this resource. The expiration time is computed: now + TTL.

MMNEPVFCICPMFPCPTTAAATR