pub enum AttemptBodyEvent {
Token(String),
ToolCall {
id: String,
name: String,
},
ToolDelta {
call_id: String,
name: String,
chunk: ToolChunk,
},
ToolSuspend {
call_id: String,
name: String,
suspension_id: String,
payload: Option<Value>,
},
ToolResult {
call_id: String,
content: String,
is_error: bool,
},
WorkflowNodesSubmitted(Vec<WorkflowNode>),
BodyError(String),
BodyDone {
run_status: String,
result: String,
turns: u32,
total_tokens: u64,
},
}Variants§
Token(String)
ToolCall
ToolDelta
ToolSuspend
ToolResult
WorkflowNodesSubmitted(Vec<WorkflowNode>)
BodyError(String)
BodyDone
Trait Implementations§
Source§impl Clone for AttemptBodyEvent
impl Clone for AttemptBodyEvent
Source§fn clone(&self) -> AttemptBodyEvent
fn clone(&self) -> AttemptBodyEvent
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 AttemptBodyEvent
impl RefUnwindSafe for AttemptBodyEvent
impl Send for AttemptBodyEvent
impl Sync for AttemptBodyEvent
impl Unpin for AttemptBodyEvent
impl UnsafeUnpin for AttemptBodyEvent
impl UnwindSafe for AttemptBodyEvent
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