langchain_community.utilities.anthropic
.get_num_tokens_anthropic¶
- langchain_community.utilities.anthropic.get_num_tokens_anthropic(text: str) int [source]¶
Get the number of tokens in a string of text.