interceptAgentFinished
fun <TFeature : Any> interceptAgentFinished(interceptContext: InterceptContext<TFeature>, handle: suspend TFeature.(eventContext: AgentCompletedContext) -> Unit)(source)
Deprecated
Please use interceptAgentCompleted instead. This method is deprecated and will be removed in the next release.
Replace with
import ai.koog.agents.core.feature.handler.agent.AgentCompletedContext
Content copied to clipboard
interceptAgentCompleted(interceptContext, handle)
Content copied to clipboard
Intercepts the completion of an agent's operation and assigns a custom handler to process the result.