count Tokens
Counts the number of tokens in a given text.
Return
A CountTokensResult containing the total number of tokens.
Parameters
The contents to tokenize.
The configuration for counting tokens.
Counts the number of tokens in a list of content objects using default configuration.
Return
A CountTokensResult containing the total number of tokens.
Parameters
The contents to tokenize.
Counts the number of tokens in a single content object.
Return
A CountTokensResult containing the total number of tokens.
Parameters
The content to tokenize.
The configuration for counting tokens.
Counts the number of tokens in a single content object using default configuration.
Return
A CountTokensResult containing the total number of tokens.
Parameters
The content to tokenize.
Counts the number of tokens in a text string.
Return
A CountTokensResult containing the total number of tokens.
Parameters
The text content to tokenize.
The configuration for counting tokens.
Counts the number of tokens in a text string using default configuration.
Return
A CountTokensResult containing the total number of tokens.
Parameters
The text content to tokenize.