javaApiInterceptLLMStreamingFailed

Intercepts errors during the streaming process.

JVM-friendly overload that accepts an async interceptor.

Example (Java): pipeline.interceptLLMStreamingFailed(feature, eventContext -> { // Handle streaming error return java.util.concurrent.CompletableFuture.completedFuture(null); });