pub struct ToolOutcome {
pub result: ToolResult,
pub snapshots: Vec<FileSnapshot>,
}Expand description
A tool result plus anything the harness needs that must not be shown to the
model. ToolResult::output goes into the conversation, so file snapshots
travel beside it rather than inside it.
Fields§
§result: ToolResult§snapshots: Vec<FileSnapshot>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 From<ToolResult> for ToolOutcome
impl From<ToolResult> for ToolOutcome
Source§fn from(result: ToolResult) -> Self
fn from(result: ToolResult) -> Self
Converts to this type from the input type.
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