pub struct ToolOutput {
pub output: String,
pub is_error: bool,
pub diff: Option<String>,
pub path: Option<String>,
}Fields§
§output: StringWhat the model reads — this becomes the ToolResult content.
is_error: bool§diff: Option<String>An optional unified diff, for presentation only: it rides the
ToolExecutionEnd event to the UI but never enters the model’s context.
None for tools that do not touch files.
path: Option<String>The file the tool changed, as the caller named it. Presentation only —
it rides ToolExecutionEnd so the UI can index the run’s changes and
label each ⚙ line, but it never enters the model’s context.
None for tools that do not touch files (or an uncommitted dry run).
Trait Implementations§
Source§impl Clone for ToolOutput
impl Clone for ToolOutput
Source§impl Debug for ToolOutput
impl Debug 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