Triggers
A retry only happens when the failure matches a configured trigger:| Trigger | Fires on |
|---|---|
http_5xx | Upstream 5xx responses. |
http_429 | Upstream rate-limit responses. |
timeout | Upstream timeouts. |
provider_error | Provider-reported errors. |
plugin_rejection | A policy rejected the request (the trigger value is plugin_rejection). |
Budget
Thebudget caps how hard TrustGate tries:
max_attempts— total forward attempts (including the first).max_total_latency— wall-clock ceiling across all attempts.
The chain
chain is the ordered list of registries to try. On each failure TrustGate moves to the
next entry and adds the failed registry to an exclude set, so the
load balancer never re-picks an already-failed
registry within the same request.
Use fallback to span providers (e.g. OpenAI → Azure OpenAI → Bedrock) for resilience, or to degrade from a premium model to a cheaper one under load.