Class CachedContent (1.55.0)

CachedContent(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A resource used in LLM queries for users to explicitly specify what to cache and how to cache.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
expire_time google.protobuf.timestamp_pb2.Timestamp
Timestamp of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. This field is a member of oneof_ expiration.
ttl google.protobuf.duration_pb2.Duration
Input only. The TTL for this resource. The expiration time is computed: now + TTL. This field is a member of oneof_ expiration.
name str
Immutable. Identifier. The resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}
model str
Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
system_instruction google.cloud.aiplatform_v1beta1.types.Content
Optional. Input only. Immutable. Developer set system instruction. Currently, text only
contents MutableSequence[google.cloud.aiplatform_v1beta1.types.Content]
Optional. Input only. Immutable. The content to cache
tools MutableSequence[google.cloud.aiplatform_v1beta1.types.Tool]
Optional. Input only. Immutable. A list of Tools the model may use to generate the next response
tool_config google.cloud.aiplatform_v1beta1.types.ToolConfig
Optional. Input only. Immutable. Tool config. This config is shared for all tools
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Creatation time of the cache entry.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. When the cache entry was last updated in UTC time.

Methods

CachedContent

CachedContent(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A resource used in LLM queries for users to explicitly specify what to cache and how to cache.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields