Class: Google::Cloud::AIPlatform::V1::CachedContent

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/cached_content.rb

Overview

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

Defined Under Namespace

Classes: UsageMetadata

Instance Attribute Summary collapse

Instance Attribute Details

#contents::Array<::Google::Cloud::AIPlatform::V1::Content>



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#create_time::Google::Protobuf::Timestamp (readonly)



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#display_name::String



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#expire_time::Google::Protobuf::Timestamp



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#model::String



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#name::String



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#system_instruction::Google::Cloud::AIPlatform::V1::Content



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#tool_config::Google::Cloud::AIPlatform::V1::ToolConfig



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#tools::Array<::Google::Cloud::AIPlatform::V1::Tool>



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#ttl::Google::Protobuf::Duration



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#update_time::Google::Protobuf::Timestamp (readonly)



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#usage_metadata::Google::Cloud::AIPlatform::V1::CachedContent::UsageMetadata (readonly)



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'proto_docs/google/cloud/aiplatform/v1/cached_content.rb', line 77

class CachedContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Metadata on the usage of the cached content.
  # @!attribute [rw] total_token_count
  #   @return [::Integer]
  #     Total number of tokens that the cached content consumes.
  # @!attribute [rw] text_count
  #   @return [::Integer]
  #     Number of text characters.
  # @!attribute [rw] image_count
  #   @return [::Integer]
  #     Number of images.
  # @!attribute [rw] video_duration_seconds
  #   @return [::Integer]
  #     Duration of video in seconds.
  # @!attribute [rw] audio_duration_seconds
  #   @return [::Integer]
  #     Duration of audio in seconds.
  class 
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end