ToolApprovalRequest class

A tool call awaiting the user's approval decision.

This is a UI-facing view of the underlying framework approval request: just enough to describe the call to the user without exposing agent-framework types to the chat widgets.

Constructors

ToolApprovalRequest({required String toolName, Map<String, Object?>? arguments})
Creates a ToolApprovalRequest.
const

Properties

arguments Map<String, Object?>?
The decoded arguments of the pending call, when available.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolName String
The name of the tool the agent wants to invoke.
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