Files
herald/crates/herald-server/src/sandbox/mod.rs
T
2026-09-20 14:42:14 +00:00

14 lines
485 B
Rust

//! Sandboxed tool execution for the AI bot.
//!
//! A [`Sandbox`] clones a pull request into a temporary directory, builds and
//! starts its devcontainer (via `devcontainer-rs`) and exposes command
//! execution inside the resulting container. The [`tools`] module maps model
//! tool calls to commands run in that container, and [`agent`] drives the
//! tool-calling loop against OpenRouter.
pub mod agent;
mod instance;
pub mod tools;
pub use instance::{Sandbox, SandboxConfig};