interceptStrategyStarted

fun <TFeature : Any> interceptStrategyStarted(feature: AIAgentFeature<*, TFeature>, featureImpl: TFeature, handle: suspend StrategyUpdateContext<TFeature>.() -> Unit)(source)

Intercepts strategy started event to perform actions when an agent strategy begins execution.

Parameters

handle

A suspend function that processes the start of a strategy, accepting the strategy context

Example:

pipeline.interceptStrategyStarted(MyFeature, myFeatureImpl) {
val strategyId = strategy.id
logger.info("Strategy $strategyId has started execution")
}