A complete AI Gateway — data sovereignty, fallback, multi-engine panel, cross-engine pipeline and structured evaluation — built only from connections, flows and rules on AlchemyBridge. Zero bespoke code.
model: flow endpoints (/ai/chat · scatter · race · pipeline · embed · decide)One contract for all six patterns. data_class IS sovereignty: declared in the protocol, enforced by a flow guard.
Illustrative example (onboarding, not an existing integration): “is the applicant’s file consistent?” and a verdict among ACEPTAR / RECHAZAR / REVISION_MANUAL with a probability per option; a low margin goes to manual review. Errors handled differently: invalid_request (400, missing state or questions), provider_rejected (4xx: retrying won’t help), provider_throttled (429/529: retry with backoff).
when: on %S.data_classtransactional data only resolves to local engines. The gate blocks BEFORE any egress — even a chain with a remote fallback is poisoned = total block (error_class: residency_block). Compliance auditable by reading the flow.
Per-engine routing + declarative fallback chain: if an engine fails (guard on %P._status), the next answers. No bespoke logic.
parallel step (D3) with quorum:2 join over 3 targets: multi-engine consensus + total gate over the panel.
parallel with first join: the first to answer wins, the rest cancelled. Minimal latency.
Native pipeline: analyze in one engine → explain in ANOTHER (@Concat chains %F). Best of each model.
Embeddings (bge-m3) through the same model, same contract, same governance.
Typed questions over a state: noul (yes/no → probability 0–1), choice (probability per option), score (2–10-level rubric → probability per level + expected score). Probabilities, not text: thresholds, abstention to manual review, auditable. Same gate and same fallback as chat.
Each engine declares its timeout_seconds: a slow engine doesn't drag the panel.
For chat and embeddings the tool speaks to the runtime (/v1/chat/completions, /v1/embeddings), not the model: it transparently supports each runtime's whole catalog. For decide it speaks the Jev dialect (POST /v1/systemone: state + model + questions → answers + usage) over <engine>_decide connections. Adding an engine = one connection in config.yaml.
Local (inside the sovereignty boundary):
Remote (the gate declares them NON-local):
Decision (/ai/decide) — a plain OpenAI-compat runtime is not enough: it takes logprobs over the options. decide_local is the local adapter: a separate engine (Python, over Ollama) that the gateway sees as just another connection. Jev / TypeSafe is remote: integration prepared, not yet tested. A remote engine's credential lives in the host's auth_policy, never in the flow.
6 model: flow endpoints + connections with timeout_seconds. Not one code endpoint.
Gate, fallback, scatter and pipeline as generic flow-SDK steps — not AI-specific features.
Anything new enters the ENGINE as a generic feature (parallel D3, timeout D8) serving the whole suite.
The data-class gate is the first piece; per-consumer permissions follow: which engines, max data_class, quotas and audit.