javaApiInterceptToolCallCompleted

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

JVM-friendly overload that accepts an async interceptor.

Example (Java): pipeline.interceptToolCallCompleted(feature, eventContext -> { // Handle tool call result return java.util.concurrent.CompletableFuture.completedFuture(null); });