interceptStrategyFinished

fun <TFeature : Any> interceptStrategyFinished(feature: AIAgentFeature<*, TFeature>, featureImpl: TFeature, handle: suspend TFeature.(strategyName: String, result: String) -> Unit)(source)

Sets up an interceptor to handle the completion of a strategy for the given feature.

Parameters

handle

A suspend function that processes the completion of a strategy, accepting the strategy name and its result as parameters.

Example:

pipeline.interceptStrategyFinished(MyFeature, myFeatureImpl) { strategyName, result ->
// Handle the completion of the strategy here
}