Class: Aws::BedrockRuntime::Types::ConverseTokensRequest

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#messagesArray<Types::Message>

An array of messages to count tokens for.

Returns:



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

#systemArray<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.

Returns:



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