Anthropic Claude model provider.
Calls the Claude Messages API with format conversion between ADK types and Anthropic's content block format.
Configuration
%ADK.Model.Claude{
model_name: "claude-sonnet-4-5-20250929",
api_key: System.fetch_env!("ANTHROPIC_API_KEY"),
base_url: "https://api.anthropic.com/v1",
extra_headers: [{"anthropic-beta", "prompt-caching-2024-07-31"}],
receive_timeout: 180_000
}Options
:extra_headers— additional request headers appended after the requiredx-api-key,anthropic-version, andcontent-typeheaders. Defaults to[].:receive_timeout— HTTP receive timeout in milliseconds. Defaults to120_000.