systemprompt-ai 0.14.5

Provider-agnostic LLM integration for systemprompt.io AI governance — Anthropic, OpenAI, Gemini, and local models unified behind one governed pipeline with cost tracking and audit.
//! Bridge between the agent provider clients and the shared
//! [`systemprompt_models::wire`] codec.
//!
//! Each provider client builds a [`request::CanonicalBuild`] (which applies the
//! per-provider sampling/reasoning policy), hands the resulting
//! [`systemprompt_models::wire::canonical::CanonicalRequest`] to the protocol
//! codec to render the wire body, and maps the parsed
//! [`systemprompt_models::wire::canonical::CanonicalResponse`] back through the
//! `response` / `stream` submodules. Vendor wire translation lives in the
//! shared codec only; this module owns the agent-side glue (auto-policy,
//! canonical→agent type mapping) and nothing vendor-specific.

mod request;
mod response;
mod stream;

pub use request::{BridgeProvider, CanonicalBuild, agent_response_format, tools_to_canonical};
pub use response::{
    CodeExecutionResponse, text_content, to_ai_response, to_code_execution, to_search_grounded,
    tool_calls,
};
pub use stream::event_to_chunk;