agnt_net/lib.rs
1//! # agnt-net
2//!
3//! HTTP backend implementations for the agnt agent runtime.
4//!
5//! Provides concrete [`Backend`] implementations for:
6//! - Ollama (via its OpenAI-compatible API)
7//! - OpenAI
8//! - Anthropic (with automatic content-block translation)
9//!
10//! All three use the same internal [`agnt_core::Message`] format — Anthropic's
11//! content blocks are translated at the wire boundary.
12//!
13//! ## Example
14//!
15//! ```no_run
16//! use agnt_net::Backend;
17//! use agnt_core::LlmBackend;
18//!
19//! let backend = Backend::ollama("gemma4:e4b");
20//! assert_eq!(backend.model(), "gemma4:e4b");
21//! ```
22
23pub mod backend;
24pub mod http;
25
26pub use backend::{Backend, Kind};