Skip to main content

tl_ai/
lib.rs

1// ThinkingLanguage — AI/ML Integration
2// Licensed under Apache-2.0
3//
4// Phase 3: Tensor type, model training (linfa), prediction (ONNX Runtime),
5// embeddings, LLM integration (Claude/OpenAI), model registry.
6// Phase 34: Multi-provider LLM, tool-use, agent framework.
7
8pub mod embed;
9pub mod llm;
10pub mod model;
11pub mod predict;
12pub mod registry;
13pub mod tensor;
14pub mod train;
15
16pub use embed::similarity;
17pub use llm::{
18    LlmResponse, StreamReader, ToolCall, chat as ai_chat, chat_with_tools, complete as ai_complete,
19    format_tool_result_messages, stream_chat,
20};
21pub use model::{LinfaKind, ModelMeta, TlModel};
22pub use predict::{predict, predict_batch};
23pub use registry::ModelRegistry;
24pub use tensor::TlTensor;
25pub use train::{TrainConfig, train};