1#![doc(
6 html_logo_url = "https://raw.githubusercontent.com/ChaoticQubit/troupekit/main/assets/brand/logo-mark.svg",
7 html_favicon_url = "https://raw.githubusercontent.com/ChaoticQubit/troupekit/main/assets/brand/favicon.svg"
8)]
9
10mod cache;
11mod catalog;
12mod chat;
13#[cfg(feature = "embed")]
14mod embed;
15mod error;
16mod gbnf;
17mod model;
18mod reply;
19pub mod sha256;
20mod tools;
21
22#[cfg(feature = "llama")]
23pub mod llama;
24
25pub use cache::ModelCache;
26pub use catalog::{DeviceClass, LocalCatalog, LocalSpec};
27pub use chat::{LocalChat, LocalChatSettings};
28#[cfg(feature = "embed")]
29pub use embed::LocalEmbedder;
30pub use error::LocalError;
31pub use gbnf::schema_to_gbnf;
32pub use model::{
33 ChatMessage, ChatRole, Flow, GenParams, GenStop, Generation, Grammar, LocalInfo, LocalMetrics,
34 LocalModel,
35};
36pub use reply::{parse_reply, REPLY_MAX_BYTES};
37pub use tools::{output_grammar, tool_grammar, tool_prompt, ToolMode};