interceptAgentRunError

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
interceptAgentExecutionFailed(interceptContext, handle)

Intercepts and handles errors occurring during the execution of an AI agent's strategy.