interceptStepExecutionCompleted

open override fun interceptStepExecutionCompleted(feature: AIAgentFeature<*, *>, handle: suspend (StepExecutionCompletedContext) -> Unit)(source)

Intercepts step execution completed event to perform actions when a plan step completes execution.

Parameters

feature

The feature associated with this handler;

handle

A suspend function that processes the completion of a step execution.

Example:

pipeline.interceptStepExecutionCompleted(feature) { event ->
logger.info("Step ${event.stepIndex} execution has completed")
}