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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! # SwarmEngine
//!
//! High-throughput, low-latency Agent Swarm orchestration framework.
//!
//! SwarmEngine provides a framework for orchestrating multiple AI agents working
//! together on complex tasks. It supports various LLM backends and includes
//! built-in evaluation capabilities.
//!
//! ## Quick Start
//!
//! ```rust,ignore
//! use swarm_engine::prelude::*;
//!
//! // Create an environment and orchestrator
//! let config = SwarmConfig::default();
//! let orchestrator = OrchestratorBuilder::new(config)
//! .environment(env)
//! .manager(manager)
//! .build()?;
//!
//! // Run the swarm
//! orchestrator.run().await;
//! ```
//!
//! ## Feature Flags
//!
//! - `eval` - Enable evaluation framework
//! - `ollama` - Enable Ollama backend
//! - `llama-server` - Enable llama.cpp server backend
//! - `llama-cpp` - Enable llama.cpp native backend
//! - `cuda` - Enable CUDA support
//! - `metal` - Enable Metal support (Apple Silicon)
//! - `full` - Enable eval + all HTTP-based LLM backends
// Re-export core types
pub use *;
// Re-export LLM types
pub use swarm_engine_llm as llm;
// Re-export eval types when enabled
pub use swarm_engine_eval as eval;
/// Prelude module for convenient imports