onToolAfterExecution property
Fired after a tool executes successfully. Can return modified output.
If the returned string is non-null, it replaces the original output.
Implementation
final Future<String?> Function(ToolAfterExecutionEvent event)?
onToolAfterExecution;