public toolCallFailed(call as ToolCall, exception as Exception) as Void
Called when a tool cannot be executed.
The original exception is re-thrown by the session after this hook, so the observer must not swallow the failure.
| Parameter | Description |
|---|---|
call | Tool call requested by the provider. |
exception | Execution failure. |
public override toolCallFailed(call as ToolCall, exception as Exception) as Void:
print("failed " + call.name + ": " + exception.message)