pub struct ToolOutcome {
pub output: Result<Value, ToolFailure>,
pub attachments: Vec<UserAttachment>,
}Fields§
§output: Result<Value, ToolFailure>§attachments: Vec<UserAttachment>Structured non-text attachments returned by the tool — currently
just images returned by MCP servers (e.g. a screenshot tool).
Empty Vec for native tools (SandboxToolRuntime) — none of them
produce non-text output today. Reuses UserAttachment rather
than introducing a parallel ToolAttachment enum because both
shapes are identical (image source); rename to MediaAttachment
if a future tool variant differs.
Trait Implementations§
Source§impl Clone for ToolOutcome
impl Clone for ToolOutcome
Source§fn clone(&self) -> ToolOutcome
fn clone(&self) -> ToolOutcome
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 ToolOutcome
impl Debug for ToolOutcome
Source§impl PartialEq for ToolOutcome
impl PartialEq for ToolOutcome
impl StructuralPartialEq for ToolOutcome
Auto Trait Implementations§
impl Freeze for ToolOutcome
impl RefUnwindSafe for ToolOutcome
impl Send for ToolOutcome
impl Sync for ToolOutcome
impl Unpin for ToolOutcome
impl UnsafeUnpin for ToolOutcome
impl UnwindSafe for ToolOutcome
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