C# Executions
Execution calls perform governed runtime actions and return canonical envelope metadata.
C#
var response = await session.ExecuteAsync(new ExecutionRequest {
Input = new { orderId = "123", reason = "duplicate" },
Route = new RouteRef { Provider = "openai", Model = "gpt-4o-mini" }
});
if (response.Error is not null) throw new InvalidOperationException(response.Error.Code);
Console.WriteLine(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