CountTokensInput

sealed class CountTokensInput

The input value for token counting. The value should be either an InvokeModel or Converse request body.

Inheritors

Types

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard