javaApiInterceptLLMStreamingFailed
fun javaApiInterceptLLMStreamingFailed(feature: AIAgentFeature<*, *>, handle: Interceptor<LLMStreamingFailedContext>)(source)
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); });