pub struct ToolDiff {
pub steps: Vec<ToolStep>,
pub recorded_stop_reason: Option<String>,
pub live_stop_reason: Option<String>,
}Expand description
The deterministic half of the comparison.
Tool calls are acts, not prose. Write(path="src/main.c") and
Write(path="src/Main.c") are not “roughly the same thing”, and a semantic
judge asked to compare them will say they are — which is exactly the class
of regression worth catching. So nothing here is judged: names, arguments
and stop_reason compare exactly, and a mismatch is a failure.
The consequence is deliberate and known: a Write whose content is a
generated source file will differ on every run, and so will a free-text
description. That is reported as a failure with the offending key named,
leaving a human to tell benign drift from a real regression — rather than a
judge quietly deciding for them.
Fields§
§steps: Vec<ToolStep>§recorded_stop_reason: Option<String>§live_stop_reason: Option<String>Implementations§
Trait Implementations§
impl Eq for ToolDiff
impl StructuralPartialEq for ToolDiff
Auto Trait Implementations§
impl Forget for ToolDiff
impl Freeze for ToolDiff
impl Move for ToolDiff
impl RefUnwindSafe for ToolDiff
impl Send for ToolDiffwhere
RawVecInner: Send,
impl Sync for ToolDiffwhere
RawVecInner: Sync,
impl Unpin for ToolDiff
impl UnsafeUnpin for ToolDiffwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ToolStep>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ToolDiffwhere
RawVecInner: UnwindSafe,
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