ApprovalRequest class final

One approval prompt, handed to the ApprovalPrompt callback.

Constructors

ApprovalRequest({required String toolName, required ApprovalTier tier, required Map<String, dynamic> arguments, required String reason})
const

Properties

arguments Map<String, dynamic>
The raw (not yet schema-validated) tool call arguments.
final
hashCode int
The hash code for this object.
no setterinherited
reason String
Why approval is required (mode, per-tool prompt policy, or the critical pattern that matched).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tier ApprovalTier
The tool's capability tier.
final
toolName String
Name of the tool about to run.
final

Methods

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