---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/anthropic_messages/types/interfaces/AnthropicMessagesCountTokensInput.md
description: Constructor-compatible shape for future count-token helpers.
---

# Interface: AnthropicMessagesCountTokensInput

Defined in: [src/batteries/llm/anthropic\_messages/types.ts:502](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/anthropic_messages/types.ts#L502)

Constructor-compatible shape for future count-token helpers.

## Properties

| Property                                   | Type                                                                    | Description                                                                 | Defined in                                                                                                                                                  |
| ------------------------------------------ | ----------------------------------------------------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `context?`   | [`DispatchContext`](../../../../../types/interfaces/DispatchContext.md) | Optional dispatch context whose prompt should be assembled before counting. | [src/batteries/llm/anthropic\_messages/types.ts:504](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/anthropic_messages/types.ts#L504) |
|  `messages?` | `MessageParam`\[]                                                        | Optional pre-built Anthropic input messages to count.                       | [src/batteries/llm/anthropic\_messages/types.ts:506](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/anthropic_messages/types.ts#L506) |
|  `system?`     | `string` | `TextBlockParam`\[]                                          | Optional pre-built Anthropic system prompt to count.                        | [src/batteries/llm/anthropic\_messages/types.ts:508](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/anthropic_messages/types.ts#L508) |
|  `tools?`       | `Tool`\[]                                                                | Optional pre-built Anthropic tools to count.                                | [src/batteries/llm/anthropic\_messages/types.ts:510](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/anthropic_messages/types.ts#L510) |
