interceptAgentRunError
fun interceptAgentRunError(feature: AIAgentFeature<*, *>, handle: suspend (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(feature, handle)
Content copied to clipboard
Intercepts and handles errors occurring during the execution of an AI agent's strategy.