google.generativeai.protos.CachedContent
Content that has been preprocessed and can be used in subsequent request to GenerativeService.
Cached content can be only used with model it was created for.
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.
Attributes |
`expire_time`
|
`google.protobuf.timestamp_pb2.Timestamp`
Timestamp in UTC 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. New TTL for this resource, input
only.
This field is a member of `oneof`_ ``expiration``.
|
`name`
|
`str`
Optional. Identifier. The resource name referring to the
cached content. Format: ``cachedContents/{id}``
|
`display_name`
|
`str`
Optional. Immutable. The user-generated
meaningful display name of the cached content.
Maximum 128 Unicode characters.
|
`model`
|
`str`
Required. Immutable. The name of the ``Model`` to use for
cached content Format: ``models/{model}``
|
`system_instruction`
|
`google.ai.generativelanguage.Content`
Optional. Input only. Immutable. Developer
set system instruction. Currently text only.
|
`contents`
|
`MutableSequence[google.ai.generativelanguage.Content]`
Optional. Input only. Immutable. The content
to cache.
|
`tools`
|
`MutableSequence[google.ai.generativelanguage.Tool]`
Optional. Input only. Immutable. A list of ``Tools`` the
model may use to generate the next response
|
`tool_config`
|
`google.ai.generativelanguage.ToolConfig`
Optional. Input only. Immutable. Tool config.
This config is shared for all tools.
|
`create_time`
|
`google.protobuf.timestamp_pb2.Timestamp`
Output only. Creation time of the cache
entry.
|
`update_time`
|
`google.protobuf.timestamp_pb2.Timestamp`
Output only. When the cache entry was last
updated in UTC time.
|
`usage_metadata`
|
`google.ai.generativelanguage.CachedContent.UsageMetadata`
Output only. Metadata on the usage of the
cached content.
|
Child Classes
class UsageMetadata