javaApiInterceptNodeExecutionFailed
fun javaApiInterceptNodeExecutionFailed(feature: AIAgentGraphFeature<*, *>, handle: Interceptor<NodeExecutionFailedContext>)(source)
Intercepts node execution when it fails.
Parameters
feature
The feature associated with this handler.
handle
The handler that processes node-failure events.
Example:
pipeline.interceptNodeExecutionFailed(feature, eventContext -> {
logger.warn("Node " + eventContext.getNode().getName()
+ " failed with error: " + eventContext.getThrowable().getMessage());
});Content copied to clipboard