transforms_util
autogen.agentchat.contrib.capabilities.transforms_util.count_text_tokens
count_text_tokens
Calculates the number of text tokens in the given message content.
Parameters:Name | Description |
---|---|
content | The message content to calculate the number of text tokens for. Type: str | list[dict | str] | None |