1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! LiteRT-LM: A Rust library for LiteRT-LM model inference
//!
//! This library provides:
//! - Model download and management
//! - Process pool management for efficient inference
//! - Streaming completions
//! - MCP (Model Context Protocol) service
//! - OpenAI-compatible API server
//!
//! # Example
//!
//! ```no_run
//! use litert_lm::{LitManager, Result};
//!
//! #[tokio::main]
//! async fn main() -> Result<()> {
//! let manager = LitManager::new().await?;
//!
//! // Pull a model
//! manager.pull("gemma-3n-E4B", None, None).await?;
//!
//! // Run completion
//! let response = manager.run_completion("gemma-3n-E4B", "Hello!").await?;
//! println!("{}", response);
//!
//! Ok(())
//! }
//! ```
// Re-export main types for library users
pub use LitManager;
pub use LiteRtMcpService;
pub use ;
pub use ;
// Re-export common types
pub type Result<T> = Result;