interceptNodeExecutionStarting
fun interceptNodeExecutionStarting(feature: AIAgentGraphFeature<*, *>, handle: suspend (eventContext: NodeExecutionStartingContext) -> Unit)(source)
Intercepts node execution before it starts.
Parameters
feature
The feature associated with this handler.
handle
The handler that processes before-node events
Example:
pipeline.interceptNodeExecutionStarting(feature) { eventContext ->
logger.info("Node ${eventContext.node.name} is about to execute with input: ${eventContext.input}")
}
Content copied to clipboard