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.
Name | Description |
---|---|
content | The message content to calculate the number of text tokens for. Type: str | list[dict[str, typing.Any] | str] | None |