interceptStrategyStarting
fun <TFeature : Any> interceptStrategyStarting(interceptContext: InterceptContext<TFeature>, handle: suspend (StrategyStartingContext<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.interceptStrategyStarting(interceptContext) { event ->
val strategyName = event.strategy.name
logger.info("Strategy $strategyName has started execution")
}
Content copied to clipboard