pub struct ToolCallTrace {
pub tool: String,
pub input_sha256: String,
pub output_sha256: Option<String>,
pub at: String,
pub duration_ms: Option<u32>,
pub status: String,
pub error_message: String,
}Expand description
One tool invocation made during an AgentRun. Stored as a
content-addressable summary, never the raw payload — keeps the
bundle bounded while preserving “did this happen, with what
inputs, returning what outputs” for reviewer audit. v0.49.
Fields§
§tool: StringTool identifier (e.g. “pubmed_search”, “arxiv_fetch”, “compile”).
input_sha256: StringSHA-256 hex of the canonical-JSON input. 64-char.
output_sha256: Option<String>SHA-256 hex of the canonical-JSON output. 64-char. Optional for tools whose output is opaque (a side effect, a navigation, etc.).
at: StringISO-8601 wall-clock start of the call.
duration_ms: Option<u32>Wall-clock duration in milliseconds.
status: StringOptional non-error status string (e.g. “ok”, “rate_limited”, “partial”). Kept free-form so a tool layer can emit whatever taxonomy it wants without protocol bumps.
error_message: StringOptional human-readable error detail when status indicates a
failure. Free-form so tool layers can carry a stack frame, an
HTTP response body, or a one-line summary — whatever a
reviewer needs to audit what went wrong without re-running the
agent. Skipped when empty so successful calls round-trip
byte-identically.
Trait Implementations§
Source§impl Clone for ToolCallTrace
impl Clone for ToolCallTrace
Source§fn clone(&self) -> ToolCallTrace
fn clone(&self) -> ToolCallTrace
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ToolCallTrace
impl Debug for ToolCallTrace
Source§impl Default for ToolCallTrace
impl Default for ToolCallTrace
Source§fn default() -> ToolCallTrace
fn default() -> ToolCallTrace
Source§impl<'de> Deserialize<'de> for ToolCallTrace
impl<'de> Deserialize<'de> for ToolCallTrace
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>,
Source§impl PartialEq for ToolCallTrace
impl PartialEq for ToolCallTrace
Source§fn eq(&self, other: &ToolCallTrace) -> bool
fn eq(&self, other: &ToolCallTrace) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallTrace
impl Serialize for ToolCallTrace
impl Eq for ToolCallTrace
impl StructuralPartialEq for ToolCallTrace
Auto Trait Implementations§
impl Freeze for ToolCallTrace
impl RefUnwindSafe for ToolCallTrace
impl Send for ToolCallTrace
impl Sync for ToolCallTrace
impl Unpin for ToolCallTrace
impl UnsafeUnpin for ToolCallTrace
impl UnwindSafe for ToolCallTrace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.