Offline support agent
The goal of this example is the support agent with the network switched off: a local chat model, a local embedder, and no model or embedder call leaving the device.
Note
In 0.4,
support_agent_offlineis a stub. It compiles with thellamaandknowledgefeatures and does nothing yet.
/// Runs the support agent on a local model with the network off.
/// Input: none yet. Output: none yet.
/// This is a stub until the offline example lands.
fn main() {}
What works today
Every piece you need is already in 0.4. You can run a local chat model through .local(..) or LocalChat, as Local models and routing shows. You can embed on the device with Knowledge::local_embedder(..) or on_device_embedder(..). And .private(true) makes build refuse an agent with no on-device model, a cloud embedder, a cloud judge, or a web, HTTP or hosted tool. A cloud model set next to a local one is never called.
The Support agent guide shows the online version. With its default hashing:256 embedder, everything except the chat model already runs offline.