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