Java Executions
Execution calls perform governed runtime actions and return canonical envelope metadata.
Java
var response = session.execute(new ExecutionRequest()
.input(Map.of("orderId", "123", "reason", "duplicate"))
.route(new RouteRef("openai", "gpt-4o-mini", null))
);
if (response.error() != null) throw new IllegalStateException(response.error().code());
System.out.println(response.meta().requestId());Required Invariants
meta.requestIdalways presentmeta.timingMs.totalalways presenterrorpopulated indicates failure; successful calls keeperrornull and returndata
Recommended Handling
- Correlate request IDs with audit and lineage views
- Treat
retryable=trueas hint, not guarantee
Last updated on