Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
Optional. Immutable. The user-generated meaningful display name of the cached content.
expireTime
expireTime?:string;
Timestamp of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
model
model?:string;
Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
name
name?:string;
Immutable. Identifier. The server-generated resource name of the cached content. Format: projects/{project}/locations/{location}/cachedContents/{cached_content}
systemInstruction
systemInstruction?:Content|string;
Developer set system instruction. Currently, text only.
toolConfig
toolConfig?:ToolConfig;
Optional. Input only. Immutable. Tool config. This config is shared for all tools.
tools
tools?:Tool[];
Optional. Input only. Immutable. A list of Tools the model may use to generate the next response.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface CachedContent (1.8.1)\n\nA resource used in LLM queries for users to explicitly specify what to cache and how to cache.\n\nPackage\n-------\n\n[@google-cloud/vertexai](../overview.html)\n\nProperties\n----------\n\n### contents\n\n contents?: Content[];\n\nOptional. Input only. Immutable. The content to cache.\n\n### createTime\n\n createTime?: string;\n\nOutput only. Creatation time of the cache entry. Format: google-datetime. See \u003chttps://cloud.google.com/docs/discovery/type-format\u003e\n\n### displayName\n\n displayName?: string;\n\nOptional. Immutable. The user-generated meaningful display name of the cached content.\n\n### expireTime\n\n expireTime?: string;\n\nTimestamp of when this resource is considered expired. This is \\*always\\* provided on output, regardless of what was sent on input.\n\n### model\n\n model?: string;\n\nImmutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}\n\n### name\n\n name?: string;\n\nImmutable. Identifier. The server-generated resource name of the cached content. Format: projects/{project}/locations/{location}/cachedContents/{cached_content}\n\n### systemInstruction\n\n systemInstruction?: Content | string;\n\nDeveloper set system instruction. Currently, text only.\n\n### toolConfig\n\n toolConfig?: ToolConfig;\n\nOptional. Input only. Immutable. Tool config. This config is shared for all tools.\n\n### tools\n\n tools?: Tool[];\n\nOptional. Input only. Immutable. A list of `Tools` the model may use to generate the next response.\n\n### ttl\n\n ttl?: string;\n\nInput only. The TTL seconds for this resource. The expiration time is computed: now + TTL. Format: google-duration. See \u003chttps://cloud.google.com/docs/discovery/type-format\u003e\n\n### updateTime\n\n updateTime?: string;\n\nOutput only. When the cache entry was last updated in UTC time. Format: google-datetime. See \u003chttps://cloud.google.com/docs/discovery/type-format\u003e\n\n### usageMetadata\n\n usageMetadata?: CachedContentUsageMetadata;\n\nOutput only. Metadata on the usage of the cached content."]]