llmkit-anthropic 0.1.0

Anthropic (Claude) Messages API provider adapter for llmkit-rs
Documentation
//! Anthropic (Claude) provider adapter for `llmkit-rs`.
//!
//! Implements [`llmkit_core::LlmProvider`] against the Anthropic Messages API
//! (`/v1/messages`), including its distinct SSE event format. Embeddings are not
//! offered by Anthropic and return [`llmkit_core::LlmError::Unsupported`].
//!
//! ```no_run
//! use llmkit_anthropic::AnthropicProvider;
//! use llmkit_core::{LlmProvider, ChatRequest};
//!
//! # async fn run() -> llmkit_core::LlmResult<()> {
//! let provider = AnthropicProvider::from_env()?.model("claude-opus-4-8");
//! let resp = provider.chat(ChatRequest::builder().user("Hello, Claude").build()).await?;
//! println!("{}", resp.text().unwrap_or_default());
//! # Ok(()) }
//! ```

#![forbid(unsafe_code)]
#![deny(missing_docs)]

mod chat;
mod provider;
mod stream;
mod types;

pub use provider::AnthropicProvider;