javaApiInterceptAgentCompleted

Intercepts the completion of an agent's operation and assigns a custom handler to process the result.

JVM-friendly overload that accepts an async interceptor.

Example (Java): pipeline.interceptAgentCompleted(feature, eventContext -> { // Handle completion return java.util.concurrent.CompletableFuture.completedFuture(null); });