interceptAgentFinished

fun interceptAgentFinished(feature: AIAgentFeature<*, *>, handle: suspend (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
interceptAgentCompleted(feature, handle)

Intercepts the completion of an agent's operation and assigns a custom handler to process the result.