pub enum ToolDispatchAction {
Continue,
Skip {
output: Value,
reason: Option<String>,
},
Terminate {
reason: String,
},
}Expand description
Decision returned by a ToolDispatchHook before a tool invocation runs.
Variants§
Continue
Invoke the tool normally.
Skip
Do not invoke the tool; record output as the invocation result.
Fields
Terminate
Stop dispatching and return KernelError::ToolDispatchTerminated.
Trait Implementations§
Source§impl Clone for ToolDispatchAction
impl Clone for ToolDispatchAction
Source§fn clone(&self) -> ToolDispatchAction
fn clone(&self) -> ToolDispatchAction
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 ToolDispatchAction
impl Debug for ToolDispatchAction
Source§impl From<&ToolDispatchAction> for TracedAction
impl From<&ToolDispatchAction> for TracedAction
Source§fn from(value: &ToolDispatchAction) -> Self
fn from(value: &ToolDispatchAction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ToolDispatchAction
impl PartialEq for ToolDispatchAction
Source§fn eq(&self, other: &ToolDispatchAction) -> bool
fn eq(&self, other: &ToolDispatchAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolDispatchAction
Auto Trait Implementations§
impl Freeze for ToolDispatchAction
impl RefUnwindSafe for ToolDispatchAction
impl Send for ToolDispatchAction
impl Sync for ToolDispatchAction
impl Unpin for ToolDispatchAction
impl UnsafeUnpin for ToolDispatchAction
impl UnwindSafe for ToolDispatchAction
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