interceptStepExecutionStarting

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

Intercepts step execution starting event to perform actions when a plan step begins execution.

Parameters

feature

The feature associated with this handler;

handle

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

Example:

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