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