interceptToolCallFailure

fun interceptToolCallFailure(feature: AIAgentFeature<*, *>, handle: suspend (eventContext: ToolCallFailedContext) -> Unit)(source)

Deprecated

Please use interceptToolCallFailed instead. This method is deprecated and will be removed in the next release.

Replace with

import ai.koog.agents.core.feature.handler.tool.ToolCallFailedContext
interceptToolCallFailed(feature, handle)

Sets up an interception mechanism to handle tool call failures for a specific feature.