#![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"
)]
mod cache;
mod catalog;
mod chat;
#[cfg(feature = "embed")]
mod embed;
mod error;
mod gbnf;
mod model;
mod reply;
pub mod sha256;
mod tools;
#[cfg(feature = "llama")]
pub mod llama;
pub use cache::ModelCache;
pub use catalog::{DeviceClass, LocalCatalog, LocalSpec};
pub use chat::{LocalChat, LocalChatSettings};
#[cfg(feature = "embed")]
pub use embed::LocalEmbedder;
pub use error::LocalError;
pub use gbnf::schema_to_gbnf;
pub use model::{
ChatMessage, ChatRole, Flow, GenParams, GenStop, Generation, Grammar, LocalInfo, LocalMetrics,
LocalModel,
};
pub use reply::{parse_reply, REPLY_MAX_BYTES};
pub use tools::{output_grammar, tool_grammar, tool_prompt, ToolMode};