Class: Google::Cloud::AIPlatform::V1::TokensInfo
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::TokensInfo
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb
Overview
Tokens info with a list of tokens and the corresponding list of token ids.
Instance Attribute Summary collapse
-
#role ⇒ ::String
Optional.
-
#token_ids ⇒ ::Array<::Integer>
A list of token ids from the input.
-
#tokens ⇒ ::Array<::String>
A list of tokens from the input.
Instance Attribute Details
#role ⇒ ::String
Returns Optional. Optional fields for the role from the corresponding Content.
57 58 59 60 |
# File 'proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb', line 57 class TokensInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#token_ids ⇒ ::Array<::Integer>
Returns A list of token ids from the input.
57 58 59 60 |
# File 'proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb', line 57 class TokensInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#tokens ⇒ ::Array<::String>
Returns A list of tokens from the input.
57 58 59 60 |
# File 'proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb', line 57 class TokensInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |