UserToolConfirmationEvent class

A tool confirmation event that approves or denies a pending tool execution.

Inheritance
Annotations
  • @immutable

Constructors

UserToolConfirmationEvent({required String id, required String toolUseId, required UserToolConfirmationResult result, String? denyMessage, DateTime? processedAt})
Creates a UserToolConfirmationEvent.
const
UserToolConfirmationEvent.fromJson(Map<String, dynamic> json)
Creates a UserToolConfirmationEvent from JSON.
factory

Properties

denyMessage String?
Optional message providing context for a 'deny' decision.
final
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for this event.
final
processedAt DateTime?
Timestamp when the confirmation was processed.
final
result UserToolConfirmationResult
The confirmation result: 'allow' or 'deny'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolUseId String
The id of the tool_use or mcp_tool_use event this corresponds to.
final
type String
The event type, always 'user.tool_confirmation'.
no setter

Methods

copyWith({String? id, String? toolUseId, UserToolConfirmationResult? result, Object? denyMessage = unsetCopyWithValue, Object? processedAt = unsetCopyWithValue}) UserToolConfirmationEvent
Creates a copy with replaced values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override