PHP Executions
Execution calls perform governed runtime actions and return canonical envelope metadata.
PHP
$response = $session->execute([
'input' => ['orderId' => '123', 'reason' => 'duplicate'],
'route' => ['provider' => 'openai', 'model' => 'gpt-4o-mini']
]);
if ($response['error']) { throw new RuntimeException($response['error']['code']); }
echo $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