Skip to content

/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 InvokeModel request for which to count tokens. Use this field when you want to count tokens for a raw text input that would be sent to the InvokeModel operation.

io_converse00 TYPE REF TO /AWS1/CL_BDRCONVERSETOKENSREQ /AWS1/CL_BDRCONVERSETOKENSREQ

A Converse request for which to count tokens. Use this field when you want to count tokens for a conversation-based input that would be sent to the Converse operation.


Queryable Attributes

invokeModel

An InvokeModel request for which to count tokens. Use this field when you want to count tokens for a raw text input that would be sent to the InvokeModel operation.

Accessible with the following methods

Method Description
GET_INVOKEMODEL00() Getter for INVOKEMODEL00

converse

A Converse request for which to count tokens. Use this field when you want to count tokens for a conversation-based input that would be sent to the Converse operation.

Accessible with the following methods

Method Description
GET_CONVERSE00() Getter for CONVERSE00