pub trait AgentInterrupter: Send + Sync {
// Required method
fn interrupt(&self, session_id: &str) -> bool;
}Expand description
Minimal boundary implemented by adk_runner::Runner::interrupt or another host.
Blanket-implemented for any Fn(&str) -> bool + Send + Sync, so a closure
can be passed directly.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".