Are you an LLM? You can read better optimized documentation at /api/@nhtio/adk/batteries/llm/anthropic_messages/count_tokens.md for this page in Markdown format
@nhtio/adk/batteries/llm/anthropic_messages/count_tokens
Token-count helpers for the Anthropic Messages battery.
Interfaces
| Interface | Description |
|---|---|
| AnthropicMessagesCountTokensDeps | Optional dependencies for the count-token helpers. |
Type Aliases
| Type Alias | Description |
|---|---|
| AnthropicMessagesCountTokensRequestInput | Public count-token input shape accepted by the exported helpers. |
Functions
| Function | Description |
|---|---|
| countAnthropicMessagesTokens | Counts tokens using constructor-baseline options plus executor-style overrides and stash. |
| countAnthropicMessagesTokensWithResolvedOptions | Counts tokens using already-resolved Anthropic adapter options. |