interceptToolCall

fun <TFeature : Any> interceptToolCall(interceptContext: InterceptContext<TFeature>, handle: suspend TFeature.(eventContext: ToolCallStartingContext) -> Unit)(source)

Deprecated

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

Replace with

import ai.koog.agents.core.feature.handler.tool.ToolCallStartingContext
interceptToolCallStarting(interceptContext, handle)

Intercepts and handles tool calls for the specified feature and its implementation. Updates the tool call handler for the given feature key with a custom handler.