javaApiInterceptLLMCallCompleted
fun javaApiInterceptLLMCallCompleted(feature: AIAgentFeature<*, *>, handle: Interceptor<LLMCallCompletedContext>)(source)
Intercepts LLM calls after they are made to process or log the response.
JVM-friendly overload that accepts an async interceptor.
Example (Java): pipeline.interceptLLMCallCompleted(feature, eventContext -> { // Process response return java.util.concurrent.CompletableFuture.completedFuture(null); });