AiToolInvocation class

Authorization request describing a planned tool call.

The executor creates this object before invoking an AiTool. Policies use it to decide whether the current user, tenant, role, and capabilities are allowed to execute the tool.

Constructors

AiToolInvocation({required String name, required String runId, required Map<String, dynamic> arguments, Map<String, dynamic> metadata = const {}, String? userId, String? tenantId, bool enabledByDefault = false, Set<String> requiredCapabilities = const {}, Set<String> userCapabilities = const {}, Set<String> userRoles = const {}})
const

Properties

arguments → Map<String, dynamic>
Tool arguments from the plan step.
final
enabledByDefault → bool
Whether the tool opts into development-friendly default execution.
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, dynamic>
Request-level metadata passed to FlintAi.run.
final
name → String
Name of the tool being invoked.
final
requiredCapabilities → Set<String>
Capabilities declared by the tool.
final
runId → String
Run id associated with the planned tool call.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tenantId → String?
Tenant id bound to the run, when available.
final
userCapabilities → Set<String>
Capabilities associated with the current user.
final
userId → String?
Authenticated user id bound to the run, when available.
final
userRoles → Set<String>
Roles associated with the current user.
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