Skip to content
3 min read · 600 words

@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

InterfaceDescription
AnthropicMessagesAdapterOptionsConfiguration options for the Anthropic Messages adapter.
AnthropicMessagesCountTokensInputConstructor-compatible shape for future count-token helpers.
AnthropicMessagesHelpersFull translation-helper contract for the Anthropic Messages battery.

Type Aliases

Type AliasDescription
AnthropicCacheBreakpointsCache-breakpoint placement mode for Anthropic prompt caching.
AnthropicCacheControlEphemeralAnthropic SDK cache-control breakpoint shape.
AnthropicCacheTtlOptional TTL value for Anthropic prompt-cache breakpoints.
AnthropicContentBlockAnthropic SDK content block union returned by the model.
AnthropicContentBlockParamAnthropic SDK input content block union.
AnthropicDocumentBlockParamAnthropic SDK document block input shape.
AnthropicImageBlockParamAnthropic SDK image block input shape.
AnthropicJSONOutputFormatAnthropic SDK JSON structured-output format shape.
AnthropicMessageAnthropic SDK response message shape.
AnthropicMessageCountTokensParamsAnthropic SDK token-count request shape.
AnthropicMessageCreateParamsAnthropic SDK create-request union.
AnthropicMessageCreateParamsBaseAnthropic SDK create-request base shape.
AnthropicMessageDeltaUsageAnthropic SDK streaming usage snapshot shape.
AnthropicMessageParamAnthropic SDK input message shape.
AnthropicMessageTokensCountAnthropic SDK token-count response shape.
AnthropicModelAnthropic SDK model identifier type.
AnthropicOutputConfigAnthropic SDK output-configuration shape.
AnthropicRawContentBlockDeltaAnthropic SDK content-block delta union.
AnthropicRawContentBlockDeltaEventAnthropic SDK content-block-delta stream event.
AnthropicRawContentBlockStartEventAnthropic SDK content-block-start stream event.
AnthropicRawContentBlockStopEventAnthropic SDK content-block-stop stream event.
AnthropicRawMessageDeltaEventAnthropic SDK message-delta stream event.
AnthropicRawMessageStartEventAnthropic SDK message-start stream event.
AnthropicRawMessageStopEventAnthropic SDK message-stop stream event.
AnthropicRawMessageStreamEventAnthropic SDK stream-event union.
AnthropicRedactedThinkingBlockAnthropic SDK redacted thinking block response shape.
AnthropicRedactedThinkingBlockParamAnthropic SDK redacted thinking block input shape.
AnthropicRefusalStopDetailsAnthropic SDK refusal details shape.
AnthropicStopReasonAnthropic SDK stop-reason union.
AnthropicTextBlockParamAnthropic SDK text block input shape.
AnthropicThinkingBlockAnthropic SDK signed thinking block response shape.
AnthropicThinkingBlockParamAnthropic SDK signed thinking block input shape.
AnthropicThinkingConfigParamAnthropic SDK thinking configuration union.
AnthropicThinkingReplayPayloadOpaque payload stored on a replayable Anthropic thinking Thought.
AnthropicToolAnthropic SDK client tool definition shape.
AnthropicToolChoiceAnthropic SDK tool-choice union.
AnthropicToolResultBlockParamAnthropic SDK tool-result block input shape.
AnthropicToolUseBlockAnthropic SDK tool-use block response shape.
AnthropicToolUseBlockParamAnthropic SDK tool-use block input shape.
AnthropicUsageAnthropic 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