pub enum PreDispatchVerdict {
Continue,
Stop(String),
Inject(Vec<AgentMessage>),
Skip(String),
}Expand description
Outcome of a PreDispatch policy evaluation.
Includes Skip for per-tool-call rejection, in addition to the
verdicts available in PolicyVerdict.
Variants§
Continue
Proceed normally.
Stop(String)
Abort the entire tool batch and stop the loop.
Inject(Vec<AgentMessage>)
Add messages to the pending queue and continue.
Skip(String)
Skip this tool call, returning the error text to the LLM.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreDispatchVerdict
impl !RefUnwindSafe for PreDispatchVerdict
impl Send for PreDispatchVerdict
impl Sync for PreDispatchVerdict
impl Unpin for PreDispatchVerdict
impl UnsafeUnpin for PreDispatchVerdict
impl !UnwindSafe for PreDispatchVerdict
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