pub enum ToolOutput {
Value(JsonValue),
Stream(Pin<Box<dyn Stream<Item = Result<JsonValue, ToolError>> + Send>>),
}Expand description
Tool execution output - either a single value or a stream of values
Variants§
Value(JsonValue)
Single final result
Stream(Pin<Box<dyn Stream<Item = Result<JsonValue, ToolError>> + Send>>)
Stream of preliminary results, ending with final result Each item in the stream represents a preliminary update
Auto Trait Implementations§
impl Freeze for ToolOutput
impl !RefUnwindSafe for ToolOutput
impl Send for ToolOutput
impl !Sync for ToolOutput
impl Unpin for ToolOutput
impl !UnwindSafe for ToolOutput
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