Skip to content

/AWS1/CL_BDRCOUNTTOKENSRSP

CountTokensResponse

CONSTRUCTOR

IMPORTING

Required arguments:

iv_inputtokens TYPE /AWS1/BDRINTEGER /AWS1/BDRINTEGER

The number of tokens in the provided input according to the specified model's tokenization rules. This count represents the number of input tokens that would be processed if the same input were sent to the model in an inference request. Use this value to estimate costs and ensure your inputs stay within model token limits.


Queryable Attributes

inputTokens

The number of tokens in the provided input according to the specified model's tokenization rules. This count represents the number of input tokens that would be processed if the same input were sent to the model in an inference request. Use this value to estimate costs and ensure your inputs stay within model token limits.

Accessible with the following methods

Method Description
GET_INPUTTOKENS() Getter for INPUTTOKENS, with configurable default
ASK_INPUTTOKENS() Getter for INPUTTOKENS w/ exceptions if field has no value
HAS_INPUTTOKENS() Determine if INPUTTOKENS has a value