CountTokensInput¶
Union Type¶
CountTokensInput
module-attribute
¶
CountTokensInput = Union[CountTokensInputInvokeModel | CountTokensInputConverse | CountTokensInputUnknown]
The input value for token counting. The value should be either an
InvokeModel or Converse request body.
Union Member Types¶
CountTokensInputInvokeModel
dataclass
¶
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.