/AWS1/CL_BDRINVKMODELTOKENSREQ¶
The body of an InvokeModel
API request for token counting. This structure mirrors the input format for the InvokeModel
operation, allowing you to count tokens for raw text inference requests.
CONSTRUCTOR
¶
IMPORTING¶
Required arguments:¶
iv_body
TYPE /AWS1/BDRBODY
/AWS1/BDRBODY
¶
The request body to count tokens for, formatted according to the model's expected input format. To learn about the input format for different models, see Model inference parameters and responses.
Queryable Attributes¶
body¶
The request body to count tokens for, formatted according to the model's expected input format. To learn about the input format for different models, see Model inference parameters and responses.
Accessible with the following methods¶
Method | Description |
---|---|
GET_BODY() |
Getter for BODY, with configurable default |
ASK_BODY() |
Getter for BODY w/ exceptions if field has no value |
HAS_BODY() |
Determine if BODY has a value |