pub enum StreamFrame {
Delta {
text: String,
},
ToolStart {
name: String,
args: Value,
class: String,
},
ToolEnd {
name: String,
ok: bool,
summary: String,
},
ToolRejected {
name: String,
class: String,
},
Iteration {
n: u32,
},
Done {
reply: String,
turns: u32,
},
Error {
message: String,
},
}Expand description
A single streamed event of a turn, serialized to the client as a JSON
frame ({"type": "...", ...}). Mirrors the agent loop’s internal
TurnEvent; the binary maps its events onto these.
Variants§
Delta
Incremental assistant text.
ToolStart
A tool call is starting.
Fields
ToolEnd
A tool call finished.
Fields
ToolRejected
A tool call was rejected by the approval gate.
Iteration
A new loop iteration began.
Done
The turn completed. Emitted by the HTTP layer after it persists the result — not by the agent.
Error
The turn failed.
Trait Implementations§
Source§impl Clone for StreamFrame
impl Clone for StreamFrame
Source§fn clone(&self) -> StreamFrame
fn clone(&self) -> StreamFrame
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 moreSource§impl Debug for StreamFrame
impl Debug for StreamFrame
Auto Trait Implementations§
impl Freeze for StreamFrame
impl RefUnwindSafe for StreamFrame
impl Send for StreamFrame
impl Sync for StreamFrame
impl Unpin for StreamFrame
impl UnsafeUnpin for StreamFrame
impl UnwindSafe for StreamFrame
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