/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.
io_toolconfig TYPE REF TO /AWS1/CL_BDRTOOLCONFIGURATION /AWS1/CL_BDRTOOLCONFIGURATION¶
The toolConfig of Converse input request to count tokens for. Configuration information for the tools that the model can use when generating a response.
io_addlmodelrequestfields TYPE REF TO /AWS1/CL_RT_DOCUMENT /AWS1/CL_RT_DOCUMENT¶
The additionalModelRequestFields of Converse input request to count tokens for. Use this field when you want to pass additional parameters that the model supports.
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 |
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TOOLCONFIG() |
Getter for TOOLCONFIG |
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ADDLMODELREQUESTFIELDS() |
Getter for ADDITIONALMODELREQUESTFIELDS, with configurable d |
ASK_ADDLMODELREQUESTFIELDS() |
Getter for ADDITIONALMODELREQUESTFIELDS w/ exceptions if fie |
HAS_ADDLMODELREQUESTFIELDS() |
Determine if ADDITIONALMODELREQUESTFIELDS has a value |