interceptToolValidationError

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

Deprecated

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

Replace with

import ai.koog.agents.core.feature.handler.tool.ToolValidationFailedContext
interceptToolValidationFailed(feature, handle)

Intercepts validation errors encountered during the execution of tools associated with the specified feature.