interceptAgentRunError
fun <TFeature : Any> interceptAgentRunError(interceptContext: InterceptContext<TFeature>, handle: suspend TFeature.(AgentExecutionFailedContext) -> Unit)(source)
Deprecated
Please use interceptAgentExecutionFailed instead. This method is deprecated and will be removed in the next release.
Replace with
import ai.koog.agents.core.feature.handler.agent.AgentExecutionFailedContext
Content copied to clipboard
interceptAgentExecutionFailed(interceptContext, handle)
Content copied to clipboard
Intercepts and handles errors occurring during the execution of an AI agent's strategy.