AgentAuditRecording class final

One tool call's audit entries, collected while the call runs and appended as one batch when it ends — applied, denied or failed.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordMutation(String op, String? target) → void
Records one applied mutation of kind op on target, at the next position of the invocation's undo chain.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

current → AgentAuditRecording?
The recording of the tool call running now, or null outside one.
no setter

Static Methods

run(String toolName, AgentToolContext context, Map<String, Object?> raw, FutureOr<Object?> call()) → FutureOr<Object?>
Runs call as the audited call of the tool toolName, appending the call's entries to context's log when it ends however it ends.