Expand description
Anthropic Claude API provider implementation
This module provides a modular implementation of the Anthropic Claude LLM provider, decomposed into focused submodules for maintainability:
provider: MainAnthropicProviderstruct andLLMProvidertrait implrequest_builder: LLMRequest → Anthropic API format conversionresponse_parser: Anthropic API response → LLMResponse parsingstream_decoder: Server-sent events (SSE) streaming decoderprompt_cache: Prompt caching configuration and headersheaders: API headers, beta features, and version managementcapabilities: Model capability detection (vision, reasoning, structured output)validation: Request validation and schema checkingfallback_retry: Bounded credit-token retry when a server-side fallback could not run
Modules§
- api
- Anthropic API compatibility server
- capabilities
- Model capability detection for Anthropic Claude models
- compat