langchain.utilities.anthropic.get_num_tokens_anthropic

langchain.utilities.anthropic.get_num_tokens_anthropic(text: str) int[source]

Get the number of tokens in a string of text.