Contracts / complete
Contract
complete
Serves one model call: validates the request, finds the provider’s adapter and calls it. Never throws.
Signature
complete(request, catalog, adapters) : Promise<Completion>
Rules
- Returns a result, a refusal made before any provider was called, or the upstream failure.
- The Executive holds no credential and answers no HTTP request.
Where it appears
- Carry a model callGatekeeper
- Serve one model callExecutive