pub enum ToolApproval {
Approve,
Deny(String),
Modify(Value),
}Expand description
Result of approving a tool call before execution.
Variants§
Approve
Allow the tool call to proceed as-is.
Deny(String)
Deny the tool call. The reason is sent back to the LLM as an error tool result.
Modify(Value)
Modify the tool call arguments before execution.
Trait Implementations§
Source§impl Clone for ToolApproval
impl Clone for ToolApproval
Source§fn clone(&self) -> ToolApproval
fn clone(&self) -> ToolApproval
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolApproval
impl RefUnwindSafe for ToolApproval
impl Send for ToolApproval
impl Sync for ToolApproval
impl Unpin for ToolApproval
impl UnwindSafe for ToolApproval
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