count_text_tokens
Parameters:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
count_text_tokens(content: str | list[dict[str, Any] | str] | None) -> int
| Name | Description |
|---|---|
content | The message content to calculate the number of text tokens for. Type: str | list[dict[str, typing.Any] | str] | None |