pub struct StopContext<'a> {
pub turn: TurnIdentity<'a>,
pub events: &'a mut Vec<EventMsg>,
/* private fields */
}Expand description
Mutable policy boundary immediately before normal turn completion.
Fields§
§turn: TurnIdentity<'a>§events: &'a mut Vec<EventMsg>Implementations§
Source§impl StopContext<'_>
impl StopContext<'_>
pub fn role(&self) -> &AgentRole
pub fn stop_hook_active(&self) -> bool
pub fn last_assistant_message(&self) -> Option<&str>
Sourcepub fn continuation(&self) -> Option<&str>
pub fn continuation(&self) -> Option<&str>
Returns the first continuation requested by the middleware chain.
Auto Trait Implementations§
impl<'a> !UnwindSafe for StopContext<'a>
impl<'a> Freeze for StopContext<'a>
impl<'a> RefUnwindSafe for StopContext<'a>
impl<'a> Send for StopContext<'a>
impl<'a> Sync for StopContext<'a>
impl<'a> Unpin for StopContext<'a>
impl<'a> UnsafeUnpin for StopContext<'a>
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