Are you an LLM? You can read better optimized documentation at /api/@nhtio/adk/batteries/llm/anthropic_messages/count_tokens/type-aliases/AnthropicMessagesCountTokensRequestInput.md for this page in Markdown format
Type Alias: AnthropicMessagesCountTokensRequestInput
ts
type AnthropicMessagesCountTokensRequestInput =
| DispatchContext
| {
messages: AnthropicMessageParam[];
system?: string | AnthropicTextBlockParam[];
tools?: AnthropicTool[];
};Defined in: src/batteries/llm/anthropic_messages/count_tokens.ts:78
Public count-token input shape accepted by the exported helpers.
Union Members
Type Literal
ts
{
messages: AnthropicMessageParam[];
system?: | string
| AnthropicTextBlockParam[];
tools?: AnthropicTool[];
}| Name | Type | Description | Defined in |
|---|---|---|---|
messages | AnthropicMessageParam[] | Pre-built Anthropic messages to count. | src/batteries/llm/anthropic_messages/count_tokens.ts:82 |
system? | | string | AnthropicTextBlockParam[] | Optional pre-built Anthropic system prompt to count. | src/batteries/llm/anthropic_messages/count_tokens.ts:84 |
tools? | AnthropicTool[] | Optional pre-built Anthropic tool definitions to count. | src/batteries/llm/anthropic_messages/count_tokens.ts:86 |