pub struct AgentStopOutput {
pub decision: Option<String>,
pub reason: Option<String>,
}Expand description
Output for the agentStop hook.
Fields§
§decision: Option<String>Set to "block" to keep the agent running.
reason: Option<String>Follow-up instruction supplied when the stop is blocked.
Trait Implementations§
Source§impl Clone for AgentStopOutput
impl Clone for AgentStopOutput
Source§fn clone(&self) -> AgentStopOutput
fn clone(&self) -> AgentStopOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentStopOutput
impl Debug for AgentStopOutput
Source§impl Default for AgentStopOutput
impl Default for AgentStopOutput
Source§fn default() -> AgentStopOutput
fn default() -> AgentStopOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentStopOutput
impl RefUnwindSafe for AgentStopOutput
impl Send for AgentStopOutput
impl Sync for AgentStopOutput
impl Unpin for AgentStopOutput
impl UnsafeUnpin for AgentStopOutput
impl UnwindSafe for AgentStopOutput
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