pub struct JournalEntry {
pub session_id: SessionId,
pub call_fingerprint: String,
pub tool_name: String,
pub arguments: Value,
pub result: Value,
pub is_error: bool,
pub timestamp_ms: u64,
}Expand description
A recorded tool call with its result.
Fields§
§session_id: SessionIdSession this entry belongs to.
call_fingerprint: StringDeterministic fingerprint of (tool_name + arguments_json).
tool_name: StringName of the tool that was called.
arguments: ValueArguments passed to the tool.
result: ValueRecorded result output.
is_error: boolWhether the original call was an error.
timestamp_ms: u64Unix epoch milliseconds.
Implementations§
Source§impl JournalEntry
impl JournalEntry
Sourcepub fn fingerprint(tool_name: &str, arguments: &Value) -> String
pub fn fingerprint(tool_name: &str, arguments: &Value) -> String
Compute a deterministic fingerprint for a tool call.
The fingerprint is stable across restarts and is used for deduplication and idempotent replay.
Trait Implementations§
Source§impl Clone for JournalEntry
impl Clone for JournalEntry
Source§fn clone(&self) -> JournalEntry
fn clone(&self) -> JournalEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 JournalEntry
impl Debug for JournalEntry
Source§impl<'de> Deserialize<'de> for JournalEntry
impl<'de> Deserialize<'de> for JournalEntry
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 JournalEntry
impl RefUnwindSafe for JournalEntry
impl Send for JournalEntry
impl Sync for JournalEntry
impl Unpin for JournalEntry
impl UnsafeUnpin for JournalEntry
impl UnwindSafe for JournalEntry
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