Skip to main content

apollo/agent/
mod.rs

1//! Agent — the autonomous agent loop.
2//! Receives messages, uses tools, responds via channels.
3//! Inspired by HiClaw's Manager/Worker pattern.
4//!
5//! The loop itself is owned by the rx4 (rotary) harness via
6//! `RotaryAgentBridge`; apollo owns everything around it.
7
8pub mod build_runner;
9pub mod compaction;
10pub mod hooks;
11pub mod loop_runner;
12pub mod mode;
13pub mod rotary_bridge;
14pub mod stream;
15pub mod streaming;
16
17pub use build_runner::{
18    BuildResult, BuildRunner, BuildRunnerConfig, CompileError, DiagnosticSeverity,
19};
20pub use loop_runner::AgentRunner;
21pub use mode::{agent_mode_from_permission_profile, AgentMode, NullChannel};
22pub use rotary_bridge::{
23    build_rx4_skill_engine, chat_message_to_rx4, register_apollo_tools, rx4_message_to_chat,
24    RotaryAgentBridge, RotaryBridgeConfig, RotaryProviderAdapter, ToolHookContext,
25};
26pub use streaming::{stream_channel, StreamChunk, StreamReceiver, StreamSender};