pub enum ToolCallResult {
Output(Value),
Failed(ToolFailure),
Suspended(Suspension),
Sleeping(Sleep),
}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.
Sleeping(Sleep)
The tool asked to park the run until an instant. Follow with
RunCtx::sleep_until and RunCtx::await_wake.
The call itself is finished when this is returned: its completion is
recorded and any idempotency claim is settled, so the sleep that
follows holds nothing. See [crate::wire] for why the request travels
in the completion rather than as an event of its own.
Trait Implementations§
Source§impl Clone for ToolCallResult
impl Clone for ToolCallResult
Source§fn clone(&self) -> ToolCallResult
fn clone(&self) -> ToolCallResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more