interceptToolCallResult

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

Deprecated

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

Replace with

import ai.koog.agents.core.feature.handler.tool.ToolCallCompletedContext
interceptToolCallCompleted(feature, handle)

Intercepts the result of a tool call with a custom handler for a specific feature.