javaApiInterceptToolCallFailed
fun javaApiInterceptToolCallFailed(feature: AIAgentFeature<*, *>, handle: Interceptor<ToolCallFailedContext>)(source)
Sets up an interception mechanism to handle tool call failures for a specific feature.
JVM-friendly overload that accepts an async interceptor.
Example (Java): pipeline.interceptToolCallFailed(feature, eventContext -> { // Handle tool call failure return java.util.concurrent.CompletableFuture.completedFuture(null); });