troupekit-providers 0.4.0

Model providers for the Troupekit LLM agent framework: wire protocols, catalog, transports and middleware.
Documentation
//! Model providers for Troupekit: four wire protocols, a provider
//! catalog, injected transports and middleware behind one `Model` trait.
//! Start with `Catalog::load` and `Catalog::connect("vendor/model", key)`.

#![doc(
    html_logo_url = "https://raw.githubusercontent.com/ChaoticQubit/troupekit/main/assets/brand/logo-mark.svg",
    html_favicon_url = "https://raw.githubusercontent.com/ChaoticQubit/troupekit/main/assets/brand/favicon.svg"
)]

pub mod catalog;
#[cfg(feature = "embeddings")]
pub mod embed;
pub mod fold;
pub mod middleware;
pub mod model;
pub mod request;
#[cfg(feature = "reqwest")]
pub mod reqwest_transport;
pub mod route;
pub mod sse;
pub mod status;
pub mod transport;
pub mod wire;

pub use catalog::{Catalog, CatalogError, EmbeddingSpec, Price, BUILTIN_CATALOG};
#[cfg(feature = "embeddings")]
pub use embed::HttpEmbedder;
pub use middleware::{FallbackModel, MeteredModel, RetryModel, RetryPolicy};
pub use model::{Endpoint, FailedCall, HttpModel, Model, RESEND_NOTE_BYTES};
pub use request::{CompletionRequest, CompletionResponse, Delta, StopReason};
pub use transport::Transport;

use troupekit_trace as _;