pub struct AgentControl { /* private fields */ }Expand description
Cloneable handle for listeners and other tasks: queue steering messages and abort the active run.
Implementations§
Source§impl AgentControl
impl AgentControl
Sourcepub fn steer(&self, message: AgentMessage)
pub fn steer(&self, message: AgentMessage)
Queue a message delivered after the current turn’s tool calls.
pub fn abort(&self)
Trait Implementations§
Auto Trait Implementations§
impl Forget for AgentControl
impl Freeze for AgentControl
impl Move for AgentControl
impl RefUnwindSafe for AgentControl
impl Send for AgentControl
impl Sync for AgentControl
impl Unpin for AgentControl
impl UnsafeUnpin for AgentControl
impl UnwindSafe for AgentControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more