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
Content copied to clipboard
interceptToolCallFailed(interceptContext, handle)
Content copied to clipboard
Sets up an interception mechanism to handle tool call failures for a specific feature.