pub struct ToolOutput {
pub content: String,
pub is_error: bool,
pub external: bool,
}Fields§
§content: String§is_error: boolReturned to the model as is_error: true so it can recover rather than
treating the failure as a result.
external: boolTrue when this content actually came from outside the machine.
Distinct from the tool’s declared untrusted_input capability, which
says what the tool can return. A refusal generated by mecha’s own
guards is not third-party content, and labelling it as such makes the
model invent explanations for its own harness’s behaviour.
Implementations§
Trait Implementations§
Source§impl Clone for ToolOutput
impl Clone for ToolOutput
Source§fn clone(&self) -> ToolOutput
fn clone(&self) -> ToolOutput
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 moreAuto 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