pub struct ToolCallFingerprint(pub u64);Expand description
Stable content hash of a ToolInvocation.
Two invocations with the same tool name and the same canonical JSON
arguments produce the same fingerprint, regardless of which dispatch
attempt produced them. Uses std::collections::hash_map::DefaultHasher,
so values are stable within a single process run but should not be
persisted across versions.
Determinism relies on serde_json::Map’s default key ordering
(BTreeMap-backed). If a downstream crate enables the preserve_order
feature globally, fingerprints will no longer be argument-order-independent.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for ToolCallFingerprint
impl Clone for ToolCallFingerprint
Source§fn clone(&self) -> ToolCallFingerprint
fn clone(&self) -> ToolCallFingerprint
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 ToolCallFingerprint
impl Debug for ToolCallFingerprint
Source§impl Hash for ToolCallFingerprint
impl Hash for ToolCallFingerprint
Source§impl PartialEq for ToolCallFingerprint
impl PartialEq for ToolCallFingerprint
Source§fn eq(&self, other: &ToolCallFingerprint) -> bool
fn eq(&self, other: &ToolCallFingerprint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ToolCallFingerprint
impl Eq for ToolCallFingerprint
impl StructuralPartialEq for ToolCallFingerprint
Auto Trait Implementations§
impl Freeze for ToolCallFingerprint
impl RefUnwindSafe for ToolCallFingerprint
impl Send for ToolCallFingerprint
impl Sync for ToolCallFingerprint
impl Unpin for ToolCallFingerprint
impl UnsafeUnpin for ToolCallFingerprint
impl UnwindSafe for ToolCallFingerprint
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