Batoi AIF Docs

Testing and Smoke Checks

Verify AIF integration before enabling production AI workflows.

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, and error.

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.