pub enum ExecutionResult {
Complete(AgentState),
Interrupted {
state: AgentState,
node: String,
interrupt_value: Option<Value>,
checkpoint_data: Option<InterruptCheckpoint>,
},
Failed {
error: AgentGraphError,
state: AgentState,
},
}Expand description
Result of a graph execution that may be interrupted.
Variants§
Complete(AgentState)
Execution completed normally
Interrupted
Execution was interrupted
Fields
§
state: AgentStateCurrent state at interrupt point
§
checkpoint_data: Option<InterruptCheckpoint>Data needed to resume execution
Failed
Execution failed with a typed error.
AG-001: Ordinary (non-interrupt) errors are preserved as Failed
instead of being silently mapped to Complete. The original error
is carried so callers can inspect and handle it.
Fields
§
error: AgentGraphErrorThe error that caused execution to fail.
§
state: AgentStateState at the point of failure (may be partially mutated).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionResult
impl !UnwindSafe for ExecutionResult
impl Freeze for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnsafeUnpin for ExecutionResult
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