Skip to main content

strands/interventions/
mod.rs

1//! Interventions: policies that inspect and gate the agent's lifecycle.
2//!
3//! An [`InterventionHandler`] returns an [`InterventionAction`] at each lifecycle point it
4//! overrides: proceed, deny, guide, confirm (ask a human) or transform. Pass handlers to
5//! [`AgentConfig::interventions`](crate::AgentConfig::interventions); they run in registration
6//! order, after the agent's other hooks on `Before*` events and before them on `After*` events.
7//! Ready-made handlers are in [`vended_interventions`](crate::vended_interventions).
8
9mod actions;
10mod handler;
11mod registry;
12
13pub use actions::{Confirm, Deny, Evaluate, Guide, InterventionAction, Proceed, Transform, default_evaluate};
14pub use handler::{InterventionHandler, InterventionResult, OnError};
15pub(crate) use registry::InterventionRegistry;