GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CachedContent (google_api_ai_platform v0.27.0)
View SourceA resource used in LLM queries for users to explicitly specify what to cache and how to cache.
Attributes
-
contents
(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t)
, default:nil
) - Optional. Input only. Immutable. The content to cache -
createTime
(type:DateTime.t
, default:nil
) - Output only. Creation time of the cache entry. -
displayName
(type:String.t
, default:nil
) - Optional. Immutable. The user-generated meaningful display name of the cached content. -
expireTime
(type:DateTime.t
, default:nil
) - Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input. -
model
(type:String.t
, default:nil
) - Immutable. The name of theModel
to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL} -
name
(type:String.t
, default:nil
) - Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content} -
systemInstruction
(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t
, default:nil
) - Optional. Input only. Immutable. Developer set system instruction. Currently, text only -
toolConfig
(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolConfig.t
, default:nil
) - Optional. Input only. Immutable. Tool config. This config is shared for all tools -
tools
(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool.t)
, default:nil
) - Optional. Input only. Immutable. A list ofTools
the model may use to generate the next response -
ttl
(type:String.t
, default:nil
) - Input only. The TTL for this resource. The expiration time is computed: now + TTL. -
updateTime
(type:DateTime.t
, default:nil
) - Output only. When the cache entry was last updated in UTC time. -
usageMetadata
(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CachedContentUsageMetadata.t
, default:nil
) - Output only. Metadata on the usage of the cached content.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CachedContent{ contents: [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t()] | nil, createTime: DateTime.t() | nil, displayName: String.t() | nil, expireTime: DateTime.t() | nil, model: String.t() | nil, name: String.t() | nil, systemInstruction: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t() | nil, toolConfig: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolConfig.t() | nil, tools: [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool.t()] | nil, ttl: String.t() | nil, updateTime: DateTime.t() | nil, usageMetadata: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CachedContentUsageMetadata.t() | nil }