pub struct ToolOutput {
pub blocks: Vec<ToolOutputBlock>,
pub is_error: bool,
}Expand description
Output a tool returns.
Fields§
§blocks: Vec<ToolOutputBlock>Content blocks - matches MCP tools/call response shape.
is_error: boolWhether this represents a tool failure.
Implementations§
Trait Implementations§
Source§impl Clone for ToolOutput
impl Clone for ToolOutput
Auto Trait Implementations§
impl Freeze for ToolOutput
impl RefUnwindSafe for ToolOutput
impl Send for ToolOutput
impl Sync for ToolOutput
impl Unpin for ToolOutput
impl UnsafeUnpin 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