Framework Independence
Batoi AIF core is a standalone PHP 8.3+ library. It has no required dependency on RAD, Laravel, Symfony, a particular queue, or a vector database.
Core Owns
- execution gateway
- provider discovery and routing contracts
- prompt resolution and validation
- policy, review, and tool-safety contracts
- audit, evaluation, and metrics contracts
- RAG, queue, agent, and API contracts
- deterministic in-memory implementations for development and tests
Host Applications Own
- routes and controllers
- authentication, trusted context, and permission resolution
- persistent adapter wiring
- secrets management
- job queues
- product UI
- deployment configuration
Integration Profiles
An integration profile connects AIF to a host environment without changing AIF core.
| Profile | Purpose |
|---|---|
| RAD | PDO persistence, workspace context, permissions, API gateway, queue, and code-assist integration. |
| UIF | Administration and review surfaces rendered from backend AIF state. |
| REST | Stable backend envelopes through AifApi. |
| Laravel and Symfony | Isolated framework packages with context and dependency wiring examples. |
| Queue | Durable asynchronous work through host-supplied infrastructure. |
| Vector Store | Access-controlled retrieval with workspace and ACL filter pushdown. |
This separation keeps AIF useful for Batoi Platform and for customer-built PHP systems.