ConverseTokensRequest
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.
Contents
- additionalModelRequestFields
-
The additionalModelRequestFields of Converse input request to count tokens for. Use this field when you want to pass additional parameters that the model supports.
Type: JSON value
Required: No
- messages
-
An array of messages to count tokens for.
Type: Array of Message objects
Required: No
- system
-
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.
Type: Array of SystemContentBlock objects
Required: No
- toolConfig
-
The toolConfig of Converse input request to count tokens for. Configuration information for the tools that the model can use when generating a response.
Type: ToolConfiguration object
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: