pub enum ExecuteToolsOutcome {
Completed(Thread),
Suspended {
thread: Thread,
suspended_call: Box<SuspendedCall>,
},
}Expand description
Outcome of the public execute_tools* family of functions.
Tool execution can complete normally or suspend while waiting for external resolution (e.g. human-in-the-loop approval).
Variants§
Completed(Thread)
All tool calls completed (successfully or with tool-level errors).
Suspended
Execution suspended on a tool call awaiting external decision.
Implementations§
Source§impl ExecuteToolsOutcome
impl ExecuteToolsOutcome
Sourcepub fn into_thread(self) -> Thread
pub fn into_thread(self) -> Thread
Extract the thread from either variant.
Sourcepub fn is_suspended(&self) -> bool
pub fn is_suspended(&self) -> bool
Returns true when execution suspended on a tool call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecuteToolsOutcome
impl RefUnwindSafe for ExecuteToolsOutcome
impl Send for ExecuteToolsOutcome
impl Sync for ExecuteToolsOutcome
impl Unpin for ExecuteToolsOutcome
impl UnsafeUnpin for ExecuteToolsOutcome
impl UnwindSafe for ExecuteToolsOutcome
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