javaApiInterceptSubgraphExecutionCompleted
fun javaApiInterceptSubgraphExecutionCompleted(feature: AIAgentGraphFeature<*, *>, handle: Interceptor<SubgraphExecutionCompletedContext>)(source)
Intercepts subgraph execution after it is successfully completed.
Parameters
feature
The feature associated with this handler.
handle
The handler that processes subgraph-completion events.
Example:
pipeline.interceptSubgraphExecutionCompleted(feature, eventContext -> {
logger.info("Subgraph " + eventContext.getSubgraph().getName()
+ " completed with output: " + eventContext.getOutput());
});Content copied to clipboard