Module 13 Summary
What this module established
Define the model call as an interface and depend on that. The vendor lives behind it, which makes offline testing and provider changes both cheap - and a fake lets the whole suite exercise the real request path.
Carry forward
- Validate model output against a schema before returning it. An out-of-range value otherwise passes straight through and breaks your contract.
- Return cost, latency and versions in a
metablock so callers can manage usage and old answers stay explainable. - Pre-check input and budget before calling. Refusals then cost nothing and sensitive input never leaves your process.
Before moving on
Move on when the suite runs offline, model output is validated, and the budget check refuses before any spend.
