ArgumentHasher class

Hashes tool-call arguments (FR-008).

By default, every argument field is hashed. Fields listed in allowlist are recorded in cleartext; all others are replaced with a __hashed__:<sha256-hex-prefix> marker in cleartextArgs.

Constructors

ArgumentHasher({Set<String> allowlist = const <String>{}})

Properties

allowlist → Set<String>
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

hash(Map<String, Object?> args) → ({Map<String, Object?> cleartext, String hash})
Returns a tuple of (overall arguments hash, cleartext args map).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited