/AWS1/CL_BDRCOUNTTOKENSINPUT¶
The input value for token counting. The value should be either an InvokeModel or Converse request body.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
io_invokemodel00 TYPE REF TO /AWS1/CL_BDRINVKMODELTOKENSREQ /AWS1/CL_BDRINVKMODELTOKENSREQ¶
An
InvokeModelrequest for which to count tokens. Use this field when you want to count tokens for a raw text input that would be sent to theInvokeModeloperation.
io_converse00 TYPE REF TO /AWS1/CL_BDRCONVERSETOKENSREQ /AWS1/CL_BDRCONVERSETOKENSREQ¶
A
Converserequest for which to count tokens. Use this field when you want to count tokens for a conversation-based input that would be sent to theConverseoperation.
Queryable Attributes¶
invokeModel¶
An
InvokeModelrequest for which to count tokens. Use this field when you want to count tokens for a raw text input that would be sent to theInvokeModeloperation.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_INVOKEMODEL00() |
Getter for INVOKEMODEL00 |
converse¶
A
Converserequest for which to count tokens. Use this field when you want to count tokens for a conversation-based input that would be sent to theConverseoperation.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CONVERSE00() |
Getter for CONVERSE00 |