Class: Aws::BedrockRuntime::Types::ConverseTokensRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockRuntime::Types::ConverseTokensRequest
- Defined in:
- gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb
Overview
The inputs from a Converse API request for token counting.
This structure mirrors the input format for the Converse operation,
allowing you to count tokens for conversation-based inference
requests.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#additional_model_request_fields ⇒ Hash, ...
The additionalModelRequestFields of Converse input request to count tokens for.
-
#messages ⇒ Array<Types::Message>
An array of messages to count tokens for.
-
#system ⇒ Array<Types::SystemContentBlock>
The system content blocks to count tokens for.
-
#tool_config ⇒ Types::ToolConfiguration
The toolConfig of Converse input request to count tokens for.
Instance Attribute Details
#additional_model_request_fields ⇒ Hash, ...
The additionalModelRequestFields of Converse input request to count tokens for. Use this field when you want to pass additional parameters that the model supports.
1402 1403 1404 1405 1406 1407 1408 1409 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1402 class ConverseTokensRequest < Struct.new( :messages, :system, :tool_config, :additional_model_request_fields) SENSITIVE = [] include Aws::Structure end |
#messages ⇒ Array<Types::Message>
An array of messages to count tokens for.
1402 1403 1404 1405 1406 1407 1408 1409 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1402 class ConverseTokensRequest < Struct.new( :messages, :system, :tool_config, :additional_model_request_fields) SENSITIVE = [] include Aws::Structure end |
#system ⇒ Array<Types::SystemContentBlock>
The system content blocks to count tokens for. System content provides instructions or context to the model about how it should behave or respond. The token count will include any system content provided.
1402 1403 1404 1405 1406 1407 1408 1409 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1402 class ConverseTokensRequest < Struct.new( :messages, :system, :tool_config, :additional_model_request_fields) SENSITIVE = [] include Aws::Structure end |
#tool_config ⇒ Types::ToolConfiguration
The toolConfig of Converse input request to count tokens for. Configuration information for the tools that the model can use when generating a response.
1402 1403 1404 1405 1406 1407 1408 1409 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1402 class ConverseTokensRequest < Struct.new( :messages, :system, :tool_config, :additional_model_request_fields) SENSITIVE = [] include Aws::Structure end |