Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::CachedContent (v0.62.0)

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>
Returns

#contents=

def contents=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::Content>
Parameter
Returns

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#display_name

def display_name() -> ::String
Returns
  • (::String) — Optional. Immutable. The user-generated meaningful display name of the cached content.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::String) — Optional. Immutable. The user-generated meaningful display name of the cached content.
Returns
  • (::String) — Optional. Immutable. The user-generated meaningful display name of the cached content.

#expire_time

def expire_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

#expire_time=

def expire_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • 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.
Returns
  • (::Google::Protobuf::Timestamp) — Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

#model

def model() -> ::String
Returns
  • (::String) — Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

#model=

def model=(value) -> ::String
Parameter
  • value (::String) — Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
Returns
  • (::String) — Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

#name

def name() -> ::String
Returns
  • (::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
Parameter
  • value (::String) — Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}
Returns
  • (::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
Returns

#system_instruction=

def system_instruction=(value) -> ::Google::Cloud::AIPlatform::V1::Content
Parameter
Returns

#tool_config

def tool_config() -> ::Google::Cloud::AIPlatform::V1::ToolConfig
Returns

#tool_config=

def tool_config=(value) -> ::Google::Cloud::AIPlatform::V1::ToolConfig
Parameter
Returns

#tools

def tools() -> ::Array<::Google::Cloud::AIPlatform::V1::Tool>
Returns

#tools=

def tools=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::Tool>
Parameter
Returns

#ttl

def ttl() -> ::Google::Protobuf::Duration
Returns

#ttl=

def ttl=(value) -> ::Google::Protobuf::Duration
Parameter
Returns

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#usage_metadata

def usage_metadata() -> ::Google::Cloud::AIPlatform::V1::CachedContent::UsageMetadata
Returns