Expand description
§agnt-net
HTTP backend implementations for the agnt agent runtime.
Provides concrete Backend implementations for:
- Ollama (via its OpenAI-compatible API)
- OpenAI
- Anthropic (with automatic content-block translation)
All three use the same internal agnt_core::Message format — Anthropic’s
content blocks are translated at the wire boundary.
§Example
use agnt_net::Backend;
use agnt_core::LlmBackend;
let backend = Backend::ollama("gemma4:e4b");
assert_eq!(backend.model(), "gemma4:e4b");