pub enum TraceEvent {
ToolCall {
name: String,
input: Value,
},
ToolResult {
ok: bool,
decision: Option<String>,
exit_code: Option<i32>,
},
Approval {
granted: bool,
},
}Expand description
One event in a trace, tagged by t — the same shape a live captured stream would emit.
ToolResult deliberately carries decision/exit_code rather than a generic “output” blob:
those are the two forms the blast-radius gate’s verdict can arrive in (warble blast-radius’s
JSON decision field, or the CLI’s own exit code convention — 0/10/11), and the scorer only
ever needs to read a gate’s verdict off a ToolResult, nothing else about it.
Variants§
ToolCall
ToolResult
Approval
The borrowed human-approval step (capability-model.md — human_approval is
realize-via runtime, never native). A live trace maps this from whatever the runtime’s
approval UI emits; here it is just granted: bool.
Trait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§fn clone(&self) -> TraceEvent
fn clone(&self) -> TraceEvent
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 TraceEvent
impl Debug for TraceEvent
Source§impl<'de> Deserialize<'de> for TraceEvent
impl<'de> Deserialize<'de> for TraceEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEvent
impl UnwindSafe for TraceEvent
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