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
//! HTTP servers that expose agentix as an LLM-API-compatible endpoint.
//!
//! Following the pandoc model: agentix's internal `Request` + `Message` +
//! `LlmEvent` AST is the hub; the existing 10 outbound providers are
//! "writers"; the modules here are "readers" that accept inbound requests in
//! various wire formats and translate them to the AST.
//!
//! Currently implemented:
//!
//! - [`anthropic`] — Anthropic Messages format on `POST /v1/messages`.
//! - [`openai_chat`] — OpenAI Chat Completions on `POST /v1/chat/completions`
//! (gated by the `server-openai-chat` feature).
//!
//! All readers share one fallback chain (see [`UpstreamSpec`]) and one shared
//! state, so a single bind port can serve multiple wire formats simultaneously
//! by merging their routers — see the `agentix` CLI binary for an example.
pub use AnthropicServer;
pub use ServerError;
pub use UpstreamSpec;
pub use Translated;
pub use OpenAIChatServer;
pub use OpenAIResponsesServer;