On this page
Batoi AIF Documentation
Batoi AIF is a standalone PHP framework for governed AI execution. It helps applications call AI providers through a framework layer that can apply policy, render governed prompts, route providers, capture audit evidence, and support evaluations.
Use these docs when you need to:
- add governed AI execution to a PHP application
- keep provider choice separate from business code
- define prompt and policy behavior outside page handlers
- expose AIF through REST-style endpoints
- integrate AIF with Batoi RAD, Batoi UIF, queues, or vector stores
The public repository is available at github.com/batoisystems/batoi-aif.
Recommended Reading Path
- Start with Getting Started.
- Review Architecture.
- Confirm Framework Independence.
- Plan providers with Provider Abstraction.
- Plan operational controls with Gateway and Policy.
- Use REST API Contract when exposing AIF to web or product surfaces.
Where AIF Fits
AIF is one of the Batoi Platform engineering foundations:
- Batoi RAD: governed application execution
- Batoi UIF: interface framework and micro app surfaces
- Batoi AIF: governed AI execution
See Engineering Foundations for the public framework stack.