Answers come back checked
Every AI response is tested against your schema before your code ever sees it.
Je AI-sleutels blijven op de server. Elk AI-antwoord wordt gecheckt voordat je app het gebruikt.
Je AI-sleutels blijven op de server. Elk AI-antwoord wordt gecheckt voordat je app het gebruikt.
Interactief voorbeeld
Deze rondleiding toont het geïmplementeerde backendcontract zonder account, credentials of providercalls.
Interactief voorbeeld
Alleen deterministische voorbeelddata. De interactie gebruikt geen account-, provider- of netwerkverbinding.
Kernpunten
Every AI response is tested against your schema before your code ever sees it.
Provider API keys live in server settings and never reach the browser.
One config file picks the provider and model, so upgrades never touch your features.
Zonder een gedeelde basis bouwt elk team deze randgevallen opnieuw — en anders.
The model returns broken JSON at the worst moment. Your code trusted it. Now a customer-facing feature is crashing. Here, bad output fails loudly at the boundary, not in your UI.
AI calls get sprinkled wherever it's convenient. One lands client-side, and your API key ships to every visitor. Here, every call runs on the server. Full stop.
Your provider retires a model. Suddenly you're doing a find-and-replace across the whole codebase. Here, it's one line in one config file.
Het mechanisme van begin tot eind, zoals het in de repository is geïmplementeerd.
You call it with a feature key
Your server code asks for text or a structured object, tagged with a feature key. One config file decides which provider and model handle it.
The call runs on the server
The matching OpenAI, Gemini, or Anthropic adapter runs with server credentials. Nothing AI-related ships to the browser.
The answer is checked at the door
The response is parsed against your schema before your code sees it. Broken output fails loudly instead of leaking through.
You get a typed result
Your code receives a clean object plus token usage, provider, and model. Never a raw string to re-parse.
Technische garanties
Achter de schermen houden autorisatie, tenantgrenzen en foutafhandeling één duidelijke eigenaar. Zo blijft de snelle ervaring voor gebruikers gekoppeld aan veilig herstel als het misgaat.
De grens hierboven is geen claim maar code. Deze bestanden dragen het contract:
src/features/ai/runtime.tssrc/features/ai/contracts.tsconfig/ai.tsDeze functies delen contracten en grenzen met deze pagina.
De documentatie beschrijft dezelfde contracten die deze pagina demonstreert.