onToolError property

Future<ToolRecoveryAction> Function(ToolErrorEvent event)? onToolError
final

Fired when a tool encounters an error. Can return a recovery action.

The returned ToolRecoveryAction tells the system how to proceed.

Implementation

final Future<ToolRecoveryAction> Function(ToolErrorEvent event)? onToolError;