Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::CachedContent.
A resource used in LLM queries for users to explicitly specify what to cache and how to cache.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#contents
def contents() -> ::Array<::Google::Cloud::AIPlatform::V1::Content>
- (::Array<::Google::Cloud::AIPlatform::V1::Content>) — Optional. Input only. Immutable. The content to cache
#contents=
def contents=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::Content>
- value (::Array<::Google::Cloud::AIPlatform::V1::Content>) — Optional. Input only. Immutable. The content to cache
- (::Array<::Google::Cloud::AIPlatform::V1::Content>) — Optional. Input only. Immutable. The content to cache
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Creation time of the cache entry.
#display_name
def display_name() -> ::String
- (::String) — Optional. Immutable. The user-generated meaningful display name of the cached content.
#display_name=
def display_name=(value) -> ::String
- value (::String) — Optional. Immutable. The user-generated meaningful display name of the cached content.
- (::String) — Optional. Immutable. The user-generated meaningful display name of the cached content.
#encryption_spec
def encryption_spec() -> ::Google::Cloud::AIPlatform::V1::EncryptionSpec
-
(::Google::Cloud::AIPlatform::V1::EncryptionSpec) — Input only. Immutable. Customer-managed encryption key spec for a
CachedContent
. If set, thisCachedContent
and all its sub-resources will be secured by this key.
#encryption_spec=
def encryption_spec=(value) -> ::Google::Cloud::AIPlatform::V1::EncryptionSpec
-
value (::Google::Cloud::AIPlatform::V1::EncryptionSpec) — Input only. Immutable. Customer-managed encryption key spec for a
CachedContent
. If set, thisCachedContent
and all its sub-resources will be secured by this key.
-
(::Google::Cloud::AIPlatform::V1::EncryptionSpec) — Input only. Immutable. Customer-managed encryption key spec for a
CachedContent
. If set, thisCachedContent
and all its sub-resources will be secured by this key.
#expire_time
def expire_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — Timestamp of when this resource is considered expired.
This is always provided on output, regardless of what was sent
on input.
Note: The following fields are mutually exclusive:
expire_time
,ttl
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#expire_time=
def expire_time=(value) -> ::Google::Protobuf::Timestamp
-
value (::Google::Protobuf::Timestamp) — Timestamp of when this resource is considered expired.
This is always provided on output, regardless of what was sent
on input.
Note: The following fields are mutually exclusive:
expire_time
,ttl
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Timestamp) — Timestamp of when this resource is considered expired.
This is always provided on output, regardless of what was sent
on input.
Note: The following fields are mutually exclusive:
expire_time
,ttl
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#model
def model() -> ::String
-
(::String) — Immutable. The name of the
Model
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}
#model=
def model=(value) -> ::String
-
value (::String) — Immutable. The name of the
Model
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}
-
(::String) — Immutable. The name of the
Model
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
def name() -> ::String
- (::String) — Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}
#name=
def name=(value) -> ::String
- value (::String) — Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}
- (::String) — Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}
#system_instruction
def system_instruction() -> ::Google::Cloud::AIPlatform::V1::Content
- (::Google::Cloud::AIPlatform::V1::Content) — Optional. Input only. Immutable. Developer set system instruction. Currently, text only
#system_instruction=
def system_instruction=(value) -> ::Google::Cloud::AIPlatform::V1::Content
- value (::Google::Cloud::AIPlatform::V1::Content) — Optional. Input only. Immutable. Developer set system instruction. Currently, text only
- (::Google::Cloud::AIPlatform::V1::Content) — Optional. Input only. Immutable. Developer set system instruction. Currently, text only
#tool_config
def tool_config() -> ::Google::Cloud::AIPlatform::V1::ToolConfig
- (::Google::Cloud::AIPlatform::V1::ToolConfig) — Optional. Input only. Immutable. Tool config. This config is shared for all tools
#tool_config=
def tool_config=(value) -> ::Google::Cloud::AIPlatform::V1::ToolConfig
- value (::Google::Cloud::AIPlatform::V1::ToolConfig) — Optional. Input only. Immutable. Tool config. This config is shared for all tools
- (::Google::Cloud::AIPlatform::V1::ToolConfig) — Optional. Input only. Immutable. Tool config. This config is shared for all tools
#tools
def tools() -> ::Array<::Google::Cloud::AIPlatform::V1::Tool>
-
(::Array<::Google::Cloud::AIPlatform::V1::Tool>) — Optional. Input only. Immutable. A list of
Tools
the model may use to generate the next response
#tools=
def tools=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::Tool>
-
value (::Array<::Google::Cloud::AIPlatform::V1::Tool>) — Optional. Input only. Immutable. A list of
Tools
the model may use to generate the next response
-
(::Array<::Google::Cloud::AIPlatform::V1::Tool>) — Optional. Input only. Immutable. A list of
Tools
the model may use to generate the next response
#ttl
def ttl() -> ::Google::Protobuf::Duration
-
(::Google::Protobuf::Duration) — Input only. The TTL for this resource. The expiration time is computed:
now + TTL.
Note: The following fields are mutually exclusive:
ttl
,expire_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#ttl=
def ttl=(value) -> ::Google::Protobuf::Duration
-
value (::Google::Protobuf::Duration) — Input only. The TTL for this resource. The expiration time is computed:
now + TTL.
Note: The following fields are mutually exclusive:
ttl
,expire_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Duration) — Input only. The TTL for this resource. The expiration time is computed:
now + TTL.
Note: The following fields are mutually exclusive:
ttl
,expire_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. When the cache entry was last updated in UTC time.
#usage_metadata
def usage_metadata() -> ::Google::Cloud::AIPlatform::V1::CachedContent::UsageMetadata
- (::Google::Cloud::AIPlatform::V1::CachedContent::UsageMetadata) — Output only. Metadata on the usage of the cached content.