pub enum ToolCallAction {
Continue,
Modify {
name: String,
arguments: Value,
},
Reject {
reason: String,
},
Skip,
}Expand description
Action to take for a tool call.
Variants§
Continue
Allow the tool call to proceed.
Modify
Modify the tool call parameters.
Reject
Reject the tool call.
Skip
Skip this tool call (don’t execute, don’t error).
Trait Implementations§
Source§impl Clone for ToolCallAction
impl Clone for ToolCallAction
Source§fn clone(&self) -> ToolCallAction
fn clone(&self) -> ToolCallAction
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 moreAuto Trait Implementations§
impl Freeze for ToolCallAction
impl RefUnwindSafe for ToolCallAction
impl Send for ToolCallAction
impl Sync for ToolCallAction
impl Unpin for ToolCallAction
impl UnsafeUnpin for ToolCallAction
impl UnwindSafe for ToolCallAction
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