utils dandy.llm.tokens.utils get_estimated_token_count_for_string Source code in dandy/llm/tokens/utils.py 4 5def get_estimated_token_count_for_string(string: str) -> int: return int(len(string) / ESTIMATED_CHARACTERS_PER_TOKEN)