pub enum ToolStreamItem {
Progress(ToolProgress),
Terminal(Result<ToolResult, ToolError>),
}Expand description
One item in a tool stream.
Variants§
Progress(ToolProgress)
Intermediate progress (logs, partial stdout, custom payloads).
Terminal(Result<ToolResult, ToolError>)
Terminal result — always last.
Implementations§
Source§impl ToolStreamItem
impl ToolStreamItem
Sourcepub const fn is_terminal(&self) -> bool
pub const fn is_terminal(&self) -> bool
Whether this is the terminal item.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolStreamItem
impl !UnwindSafe for ToolStreamItem
impl Freeze for ToolStreamItem
impl Send for ToolStreamItem
impl Sync for ToolStreamItem
impl Unpin for ToolStreamItem
impl UnsafeUnpin for ToolStreamItem
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