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
-
#messages ⇒ Array<Types::Message>
An array of messages to count tokens for.
-
#system ⇒ Array<Types::SystemContentBlock>
The system content blocks to count tokens for.
Instance Attribute Details
#messages ⇒ Array<Types::Message>
An array of messages to count tokens for.
1190 1191 1192 1193 1194 1195 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1190 class ConverseTokensRequest < Struct.new( :messages, :system) 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.
1190 1191 1192 1193 1194 1195 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1190 class ConverseTokensRequest < Struct.new( :messages, :system) SENSITIVE = [] include Aws::Structure end |