interceptToolCallFailure

fun <TFeature : Any> interceptToolCallFailure(interceptContext: InterceptContext<TFeature>, handle: suspend TFeature.(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(interceptContext, handle)

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