On this page
Testing and Smoke Checks
Begin with mock providers and deterministic prompts. Add live provider tests only after policy, secrets, and audit handling are confirmed.
Smoke Checklist
- AIF classes autoload correctly.
- Mock provider execution succeeds.
- Policy deny returns a governed error.
- Prompt rendering handles expected inputs.
- Provider credentials are not exposed to the browser.
- Audit records include correlation ID and policy outcome.
- REST envelopes preserve
ok,data, anderror.
Example Test Shape
$response = $gateway->infer(new InferenceRequest(
prompt: 'Return a short test response.',
provider: 'mock',
model: 'mock-model'
));
assert($response !== null);Production Readiness
Before production use, verify provider rate limits, retry behavior, data retention, redaction policy, audit access, and human review rules.