Creates an instance of the AnthropicAdapter.
Configuration options including the API key and optional model/baseURL/defaults.
ReadonlyproviderThe unique identifier name for this provider (e.g., 'openai', 'anthropic').
Sends a request to the Anthropic Messages API.
Translates ArtStandardPrompt to the Anthropic format and handles streaming and tool use.
The standardized prompt messages.
Call options, including threadId, traceId, stream, callContext,
model (override), tools (available tools), and Anthropic-specific
generation parameters from providerConfig.adapterOptions.
A promise resolving to an AsyncIterable of StreamEvent objects.
Optional: Method for graceful shutdown
Implements the
ProviderAdapterinterface for interacting with Anthropic's Messages API (Claude models) using the official SDK.Handles formatting requests, parsing responses, streaming, and tool use.
See