Skip to main content

siumai_protocol_anthropic/
lib.rs

1//! siumai-protocol-anthropic
2//!
3//! Anthropic Messages protocol mapping for siumai.
4//!
5//! This crate owns the vendor-agnostic protocol layer for Anthropic Messages:
6//! - Messages API request/response mapping
7//! - Streaming event conversion
8//! - Prompt caching + thinking helpers (protocol-level)
9//!
10//! Provider crates should depend on this crate and keep vendor-specific quirks behind
11//! provider-owned presets/wrappers.
12#![deny(unsafe_code)]
13
14// Re-export the provider-agnostic core modules required by the standard implementation.
15// This preserves existing internal-style module paths in migrated code (e.g. `crate::types::*`).
16pub use siumai_core::{
17    LlmError, auth, client, core, defaults, encoding, error, execution, hosted_tools,
18    observability, retry, retry_api, streaming, tools, traits, types, utils,
19};
20
21/// Builder utilities shared across provider crates.
22pub mod builder {
23    pub use siumai_core::builder::*;
24}
25
26/// Protocol-owned typed metadata views.
27pub mod provider_metadata;
28
29pub mod standards;
30
31pub use types::{ChatResponse, CommonParams};