Skip to main content

agnosai/
lib.rs

1//! AgnosAI — provider-agnostic AI orchestration framework.
2//!
3//! This crate unifies core types, LLM providers, task orchestration, tool
4//! execution, adaptive learning, and an HTTP API server into a single library.
5//!
6//! # Feature flags
7//!
8//! All features are opt-in (no defaults):
9//!
10//! - **`sandbox`** — WASM (wasmtime) and Python subprocess tool sandboxing.
11//! - **`fleet`** — Distributed multi-node crew execution and GPU scheduling.
12//! - **`definitions`** — YAML/JSON agent preset loading and `.agpkg` packaging.
13//! - **`hwaccel`** — Hardware accelerator detection via [`ai-hwaccel`](https://github.com/maccracken/ai-hwaccel).
14//! - **`otel`** — OpenTelemetry OTLP trace export via [`hoosh::telemetry`].
15//! - **`full`** — Enables all of the above.
16
17pub mod core;
18pub mod learning;
19pub mod llm;
20pub mod orchestrator;
21pub mod server;
22pub mod tools;
23
24#[cfg(feature = "otel")]
25pub mod telemetry;
26
27#[cfg(feature = "sandbox")]
28pub mod sandbox;
29
30#[cfg(feature = "fleet")]
31pub mod fleet;
32
33#[cfg(feature = "definitions")]
34pub mod definitions;