javaApiInterceptLLMStreamingFrameReceived
fun javaApiInterceptLLMStreamingFrameReceived(feature: AIAgentFeature<*, *>, handle: Interceptor<LLMStreamingFrameReceivedContext>)(source)
Intercepts stream frames as they are received during the streaming process.
JVM-friendly overload that accepts an async interceptor.
Example (Java): pipeline.interceptLLMStreamingFrameReceived(feature, eventContext -> { // Handle stream frame return java.util.concurrent.CompletableFuture.completedFuture(null); });