javaApiInterceptToolCallStarting
fun javaApiInterceptToolCallStarting(feature: AIAgentFeature<*, *>, handle: Interceptor<ToolCallStartingContext>)(source)
Intercepts and handles tool calls for the specified feature.
JVM-friendly overload that accepts an async interceptor.
Example (Java): pipeline.interceptToolCallStarting(feature, eventContext -> { // Process tool call return java.util.concurrent.CompletableFuture.completedFuture(null); });