gateway-core 0.3.36

Runtime-neutral LLM provider adapters, wire translation, and routing primitives for the Axond AI gateway.
Documentation
pub mod anthropic;
pub mod catalog;
pub mod circuit;
pub mod error;
pub mod failover;
pub mod governance;
pub mod guardrail;
pub mod openai;
pub mod provider;
pub mod stream;
pub mod tool_call;

pub use anthropic::{
    AnthropicAdapter, NativeMessagesDecoder, REASONING_DETAIL_FORMAT, SignedThinking,
    encrypted_reasoning_detail, native_message_usage, signed_thinking_from_details,
    thinking_blocks_from_details,
};
pub use catalog::{CatalogError, CatalogModel, ModelCatalog, ModelPrice, Usage, UsageReceipt};
pub use circuit::{CircuitBreaker, CircuitDecision, CircuitState};
pub use error::{
    DIAGNOSTIC_TRUNCATION_MARKER, DependencyFailure, MAX_DIAGNOSTIC_BYTES, ProviderError,
    is_rate_limit_payload,
};
pub use failover::{FailoverDecision, FailoverPolicy, FailoverTarget};
pub use governance::{Admission, Governance, GovernanceKey, GovernanceLimits};
pub use guardrail::{
    Guardrail, GuardrailAction, GuardrailPolicy, GuardrailRequest, GuardrailRule, GuardrailVerdict,
    RegexGuardrail,
};
pub use openai::{
    OpenAiCompatibleAdapter, OpenAiFlavor, embeddings_usage, normalize_foundry_endpoint,
    responses_usage,
};
pub use provider::{
    Capabilities, ModelUsage, ProviderAdapter, ProviderRequest, ProviderResponse,
    ProviderStreamDecoder, ProviderStreamEvent, Surface,
};
pub use stream::{SseDecoder, SseEvent, StreamParseError};
pub use tool_call::{
    AssembledToolCall, ToolCallAssembler, ToolCallAssemblyError, ToolCallFragment,
};