/AWS1/CL_BDRCONVERSETOKENSREQ¶
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.
CONSTRUCTOR
¶
IMPORTING¶
Optional arguments:¶
it_messages
TYPE /AWS1/CL_BDRMESSAGE=>TT_MESSAGES
TT_MESSAGES
¶
An array of messages to count tokens for.
it_system
TYPE /AWS1/CL_BDRSYSTEMCONTENTBLOCK=>TT_SYSTEMCONTENTBLOCKS
TT_SYSTEMCONTENTBLOCKS
¶
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.
Queryable Attributes¶
messages¶
An array of messages to count tokens for.
Accessible with the following methods¶
Method | Description |
---|---|
GET_MESSAGES() |
Getter for MESSAGES, with configurable default |
ASK_MESSAGES() |
Getter for MESSAGES w/ exceptions if field has no value |
HAS_MESSAGES() |
Determine if MESSAGES has a value |
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.
Accessible with the following methods¶
Method | Description |
---|---|
GET_SYSTEM() |
Getter for SYSTEM, with configurable default |
ASK_SYSTEM() |
Getter for SYSTEM w/ exceptions if field has no value |
HAS_SYSTEM() |
Determine if SYSTEM has a value |