Skip to main content

vtcode_core/llm/providers/anthropic/
mod.rs

1//! Anthropic Claude API provider implementation
2//!
3//! This module provides a modular implementation of the Anthropic Claude LLM provider,
4//! decomposed into focused submodules for maintainability:
5//!
6//! - `provider`: Main `AnthropicProvider` struct and `LLMProvider` trait impl
7//! - `request_builder`: LLMRequest → Anthropic API format conversion
8//! - `response_parser`: Anthropic API response → LLMResponse parsing
9//! - `stream_decoder`: Server-sent events (SSE) streaming decoder
10//! - `prompt_cache`: Prompt caching configuration and headers
11//! - `headers`: API headers, beta features, and version management
12//! - `capabilities`: Model capability detection (vision, reasoning, structured output)
13//! - `validation`: Request validation and schema checking
14
15#[cfg(feature = "anthropic-api")]
16pub mod api;
17pub(crate) mod capabilities;
18pub mod compat;
19mod headers;
20mod prompt_cache;
21mod provider;
22mod request_builder;
23mod response_parser;
24mod stream_decoder;
25mod validation;
26
27pub use provider::AnthropicProvider;
28
29#[cfg(test)]
30mod tests;