@nhtio/adk/batteries/llm/anthropic_messages/types
TypeScript wire shapes, helper contracts, and option types for the Anthropic Messages battery.
Remarks
Type aliases for the Anthropic Messages adapter, the adapter's options shape, and the AnthropicMessagesHelpers contract. Runtime validation lives in validation.ts.
SDK-owned wire shapes are surfaced as local aliases only. Do not replace these with named re-exports from @anthropic-ai/sdk: the package is an external optional peer, and direct named re-exports through it fail the generated package build even when TypeScript type-checking passes.
Interfaces
| Interface | Description |
|---|---|
| AnthropicMessagesAdapterOptions | Configuration options for the Anthropic Messages adapter. |
| AnthropicMessagesCountTokensInput | Constructor-compatible shape for future count-token helpers. |
| AnthropicMessagesHelpers | Full translation-helper contract for the Anthropic Messages battery. |
Type Aliases
| Type Alias | Description |
|---|---|
| AnthropicCacheBreakpoints | Cache-breakpoint placement mode for Anthropic prompt caching. |
| AnthropicCacheControlEphemeral | Anthropic SDK cache-control breakpoint shape. |
| AnthropicCacheTtl | Optional TTL value for Anthropic prompt-cache breakpoints. |
| AnthropicContentBlock | Anthropic SDK content block union returned by the model. |
| AnthropicContentBlockParam | Anthropic SDK input content block union. |
| AnthropicDocumentBlockParam | Anthropic SDK document block input shape. |
| AnthropicImageBlockParam | Anthropic SDK image block input shape. |
| AnthropicJSONOutputFormat | Anthropic SDK JSON structured-output format shape. |
| AnthropicMessage | Anthropic SDK response message shape. |
| AnthropicMessageCountTokensParams | Anthropic SDK token-count request shape. |
| AnthropicMessageCreateParams | Anthropic SDK create-request union. |
| AnthropicMessageCreateParamsBase | Anthropic SDK create-request base shape. |
| AnthropicMessageDeltaUsage | Anthropic SDK streaming usage snapshot shape. |
| AnthropicMessageParam | Anthropic SDK input message shape. |
| AnthropicMessageTokensCount | Anthropic SDK token-count response shape. |
| AnthropicModel | Anthropic SDK model identifier type. |
| AnthropicOutputConfig | Anthropic SDK output-configuration shape. |
| AnthropicRawContentBlockDelta | Anthropic SDK content-block delta union. |
| AnthropicRawContentBlockDeltaEvent | Anthropic SDK content-block-delta stream event. |
| AnthropicRawContentBlockStartEvent | Anthropic SDK content-block-start stream event. |
| AnthropicRawContentBlockStopEvent | Anthropic SDK content-block-stop stream event. |
| AnthropicRawMessageDeltaEvent | Anthropic SDK message-delta stream event. |
| AnthropicRawMessageStartEvent | Anthropic SDK message-start stream event. |
| AnthropicRawMessageStopEvent | Anthropic SDK message-stop stream event. |
| AnthropicRawMessageStreamEvent | Anthropic SDK stream-event union. |
| AnthropicRedactedThinkingBlock | Anthropic SDK redacted thinking block response shape. |
| AnthropicRedactedThinkingBlockParam | Anthropic SDK redacted thinking block input shape. |
| AnthropicRefusalStopDetails | Anthropic SDK refusal details shape. |
| AnthropicStopReason | Anthropic SDK stop-reason union. |
| AnthropicTextBlockParam | Anthropic SDK text block input shape. |
| AnthropicThinkingBlock | Anthropic SDK signed thinking block response shape. |
| AnthropicThinkingBlockParam | Anthropic SDK signed thinking block input shape. |
| AnthropicThinkingConfigParam | Anthropic SDK thinking configuration union. |
| AnthropicThinkingReplayPayload | Opaque payload stored on a replayable Anthropic thinking Thought. |
| AnthropicTool | Anthropic SDK client tool definition shape. |
| AnthropicToolChoice | Anthropic SDK tool-choice union. |
| AnthropicToolResultBlockParam | Anthropic SDK tool-result block input shape. |
| AnthropicToolUseBlock | Anthropic SDK tool-use block response shape. |
| AnthropicToolUseBlockParam | Anthropic SDK tool-use block input shape. |
| AnthropicUsage | Anthropic SDK usage shape for completed messages. |
References
ChatCompletionsBucketLabel
Re-exports ChatCompletionsBucketLabel
ChatCompletionsBucketOrder
Re-exports ChatCompletionsBucketOrder
ChatCompletionsRetryConfig
Re-exports ChatCompletionsRetryConfig
ChatHelpersCommon
Re-exports ChatHelpersCommon
DescriptionLike
Re-exports DescriptionLike
JsonSchema
Re-exports JsonSchema
MemoryAttrs
Re-exports MemoryAttrs
RetrievableAttrs
Re-exports RetrievableAttrs
StandingInstructionAttrs
Re-exports StandingInstructionAttrs
ThoughtAttrs
Re-exports ThoughtAttrs
ToolCallParserFn
Re-exports ToolCallParserFn
ToolCallParserName
Re-exports ToolCallParserName
TrustedContentAttrs
Re-exports TrustedContentAttrs
UnsupportedMediaPolicy
Re-exports UnsupportedMediaPolicy
UntrustedContentAttrs
Re-exports UntrustedContentAttrs