Skip to main content

siumai_anthropic_compatible/
lib.rs

1//! Configured execution engine for Anthropic Messages-compatible APIs.
2//!
3//! This crate owns reusable protocol execution, endpoint isolation, authentication,
4//! option merging, and evidence-backed compatibility profiles. It deliberately does
5//! not own any branded provider identity, provider annotation namespace, or native
6//! resource API.
7#![deny(unsafe_code)]
8
9mod auth;
10mod model;
11mod options;
12mod profile;
13mod projection;
14mod provider;
15
16pub use auth::{AnthropicCompatibleCredential, CredentialError};
17pub use model::AnthropicCompatibleLanguageModel;
18pub use options::MessagesCallOptions;
19pub use profile::{
20    AnthropicCompatibleProfile, MessagesRequestPolicy, MessagesRequestRequirements,
21    NoMessagesRequestPolicy,
22};
23pub use projection::{
24    MessagesRequestProjection, MessagesRequestProjectionContext, NativeMessagesRequestProjection,
25    ProjectedMessagesRequest,
26};
27pub use provider::{
28    AnthropicCompatibleConfigError, AnthropicCompatibleProvider, AnthropicCompatibleProviderBuilder,
29};
30pub use siumai_protocol_anthropic::messages::{
31    CacheControl, CacheControlWireStyle, CacheTtl, ClearThinkingEdit, ClearThinkingKeep,
32    ClearToolInputs, ClearToolUsesEdit, CompactionEdit, ContainerSkill, ContainerSkillType,
33    ContextManagement, ContextManagementEdit, ContextManagementTrigger, InferenceGeo,
34    InferenceSpeed, McpAuthorizationToken, McpServer, MessagesAssignedServiceTier,
35    MessagesContainer, MessagesEncodingRuleError, MessagesEncodingRules,
36    MessagesServiceTierPreference, MessagesTokenCountOptions, MidConversationSystemEncoding,
37    TemperatureEncodingRule, TokenTaskBudget,
38};
39
40#[cfg(test)]
41mod tests;