get_num_tokens_anthropic#
- langchain_aws.utils.get_num_tokens_anthropic(text: str) int [source]#
Get the number of tokens in a string of text.
- Parameters:
text (str)
- Return type:
int
Site Navigation
utils
Get the number of tokens in a string of text.
text (str)
int