javaApiInterceptAgentExecutionFailed

Intercepts and handles errors occurring during the execution of an AI agent's strategy.

JVM-friendly overload that accepts an async interceptor.

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