pub enum ToolInterruption {
ApprovalRequired(ApprovalRequest),
AuthRequired(AuthRequest),
}Expand description
A tool execution was paused because it needs external input.
The agent loop should handle the interruption (show a prompt, open an OAuth flow, etc.) and then re-submit the tool call.
Variants§
ApprovalRequired(ApprovalRequest)
The operation requires human approval before it can proceed.
AuthRequired(AuthRequest)
The operation requires authentication credentials.
Trait Implementations§
Source§impl Clone for ToolInterruption
impl Clone for ToolInterruption
Source§fn clone(&self) -> ToolInterruption
fn clone(&self) -> ToolInterruption
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 moreSource§impl Debug for ToolInterruption
impl Debug for ToolInterruption
Source§impl<'de> Deserialize<'de> for ToolInterruption
impl<'de> Deserialize<'de> for ToolInterruption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolInterruption
impl PartialEq for ToolInterruption
Source§impl Serialize for ToolInterruption
impl Serialize for ToolInterruption
impl Eq for ToolInterruption
impl StructuralPartialEq for ToolInterruption
Auto Trait Implementations§
impl Freeze for ToolInterruption
impl RefUnwindSafe for ToolInterruption
impl Send for ToolInterruption
impl Sync for ToolInterruption
impl Unpin for ToolInterruption
impl UnsafeUnpin for ToolInterruption
impl UnwindSafe for ToolInterruption
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