Skip to content

/AWS1/CL_BDCHARNESSTOKENUSAGE

Token usage counts for the invocation.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_inputtokens TYPE /AWS1/BDCINTEGER /AWS1/BDCINTEGER

The number of input tokens consumed.

iv_outputtokens TYPE /AWS1/BDCINTEGER /AWS1/BDCINTEGER

The number of output tokens generated.

iv_totaltokens TYPE /AWS1/BDCINTEGER /AWS1/BDCINTEGER

The total number of tokens consumed.

Optional arguments:

iv_cachereadinputtokens TYPE /AWS1/BDCINTEGER /AWS1/BDCINTEGER

The number of input tokens read from cache.

iv_cachewriteinputtokens TYPE /AWS1/BDCINTEGER /AWS1/BDCINTEGER

The number of input tokens written to cache.


Queryable Attributes

inputTokens

The number of input tokens consumed.

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

outputTokens

The number of output tokens generated.

Accessible with the following methods

Method Description
GET_OUTPUTTOKENS() Getter for OUTPUTTOKENS, with configurable default
ASK_OUTPUTTOKENS() Getter for OUTPUTTOKENS w/ exceptions if field has no value
HAS_OUTPUTTOKENS() Determine if OUTPUTTOKENS has a value

totalTokens

The total number of tokens consumed.

Accessible with the following methods

Method Description
GET_TOTALTOKENS() Getter for TOTALTOKENS, with configurable default
ASK_TOTALTOKENS() Getter for TOTALTOKENS w/ exceptions if field has no value
HAS_TOTALTOKENS() Determine if TOTALTOKENS has a value

cacheReadInputTokens

The number of input tokens read from cache.

Accessible with the following methods

Method Description
GET_CACHEREADINPUTTOKENS() Getter for CACHEREADINPUTTOKENS, with configurable default
ASK_CACHEREADINPUTTOKENS() Getter for CACHEREADINPUTTOKENS w/ exceptions if field has n
HAS_CACHEREADINPUTTOKENS() Determine if CACHEREADINPUTTOKENS has a value

cacheWriteInputTokens

The number of input tokens written to cache.

Accessible with the following methods

Method Description
GET_CACHEWRITEINPUTTOKENS() Getter for CACHEWRITEINPUTTOKENS, with configurable default
ASK_CACHEWRITEINPUTTOKENS() Getter for CACHEWRITEINPUTTOKENS w/ exceptions if field has
HAS_CACHEWRITEINPUTTOKENS() Determine if CACHEWRITEINPUTTOKENS has a value