javaApiInterceptToolValidationFailed
fun javaApiInterceptToolValidationFailed(feature: AIAgentFeature<*, *>, handle: Interceptor<ToolValidationFailedContext>)(source)
Intercepts validation errors encountered during the execution of tools associated with the specified feature.
JVM-friendly overload that accepts an async interceptor.
Example (Java): pipeline.interceptToolValidationFailed(feature, eventContext -> { // Handle validation failure return java.util.concurrent.CompletableFuture.completedFuture(null); });