interceptSubgraphExecutionFailed
fun interceptSubgraphExecutionFailed(feature: AIAgentGraphFeature<*, *>, handle: suspend (eventContext: SubgraphExecutionFailedContext) -> Unit)(source)
Intercepts and handles subgraph execution failures for a given feature.
Parameters
feature
The feature associated with this handler.
handle
A suspend function that processes the subgraph execution failure event.
Example:
pipeline.interceptSubgraphExecutionFailed(feature) { eventContext ->
logger.error("Subgraph ${eventContext.subgraph.name} execution failed with error: ${eventContext.throwable}")
}Content copied to clipboard