pub enum ToolCallResult {
Output(Value),
Failed(ToolFailure),
Suspended(Suspension),
}Expand description
A tool call’s result, decoded from the recorded completion output (the decoding is identical live and on replay, which is what keeps a resumed orchestration on the recorded path).
Variants§
Output(Value)
The tool produced this output.
Failed(ToolFailure)
The tool failed after exhausting its retry policy; the full error is
recorded in the completion. See [crate::wire] for the shape.
Suspended(Suspension)
The tool asked to park the run. Follow with RunCtx::suspend and
RunCtx::await_resume.
Trait Implementations§
Source§impl Clone for ToolCallResult
impl Clone for ToolCallResult
Source§fn clone(&self) -> ToolCallResult
fn clone(&self) -> ToolCallResult
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 ToolCallResult
impl RefUnwindSafe for ToolCallResult
impl Send for ToolCallResult
impl Sync for ToolCallResult
impl Unpin for ToolCallResult
impl UnsafeUnpin for ToolCallResult
impl UnwindSafe for ToolCallResult
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