pub enum RunEnd {
Success {
result: Option<Value>,
},
SuccessWithPendingToolCalls {
result: Option<Value>,
pending_tool_call_ids: Vec<ToolCallId>,
},
Interrupted {
interrupts: Vec<Interrupt>,
},
Failed {
message: String,
code: Option<String>,
},
Cancelled,
Aborted,
}Expand description
How the remote run ended, or how local consumption stopped.
Variants§
Success
The server confirmed successful completion. Local diagnostics remain separate.
SuccessWithPendingToolCalls
The server completed, with frontend tool calls awaiting answers.
Fields
§
pending_tool_call_ids: Vec<ToolCallId>Calls to answer in the next request, in call order.
Interrupted
The server paused for input.
Failed
The server or transport failed, or its terminal event was invalid.
Cancelled
The server confirmed that it stopped the run before completion.
Aborted
Local consumption stopped. This does not confirm cancellation on the server.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunEnd
impl<'de> Deserialize<'de> for RunEnd
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
impl StructuralPartialEq for RunEnd
Auto Trait Implementations§
impl Freeze for RunEnd
impl RefUnwindSafe for RunEnd
impl Send for RunEnd
impl Sync for RunEnd
impl Unpin for RunEnd
impl UnsafeUnpin for RunEnd
impl UnwindSafe for RunEnd
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