javaApiInterceptLLMCallStarting
fun javaApiInterceptLLMCallStarting(feature: AIAgentFeature<*, *>, handle: Interceptor<LLMCallStartingContext>)(source)
Intercepts LLM calls before they are made to modify or log the prompt.
JVM-friendly overload that accepts an async interceptor.
Example (Java): pipeline.interceptLLMCallStarting(feature, eventContext -> { // About to call LLM return java.util.concurrent.CompletableFuture.completedFuture(null); });