onNodeExecutionFailed

suspend fun onNodeExecutionFailed(node: AIAgentNodeBase<*, *>, context: AIAgentContext, throwable: Throwable)(source)

Handles errors occurring during the execution of a node by invoking all registered node execution error handlers.

Parameters

node

The instance of the node where the error occurred.

context

The context associated with the AI agent executing the node.

throwable

The exception or error that occurred during node execution.