Skip to main content
Batoi AIF Docs

Batoi AIF Documentation

Documentation for the PHP 8.3+ governed AI execution framework.

Version Foundation release Early foundation work Reviewed Jul 21, 2026 Next review Sep 21, 2026

Owner: Batoi Engineering Reviewed by: Batoi AIF Maintainers Source revision: cd680e8

AIF is the public engineering framework. For the managed intelligence capability used across supported Platform and Flex workflows, see Batoi Intelligence.
Browse Batoi AIF Documentation Batoi AIF Documentation

Batoi AIF Documentation

Batoi AIF is a provider-neutral PHP framework for governed AI execution. It keeps provider abstraction, policy, prompt handling, audit evidence, and application integration inside an explicit runtime boundary.

The public repository is in early foundation work. Evaluate the current source and its stated boundaries before adopting it in a production application. The framework requires PHP 8.3 or newer and uses the Apache 2.0 license.

Use these docs when you need to:

  • fail closed when caller context, policy, or audit persistence is unavailable
  • route AI operations by normalized provider capabilities
  • govern prompts, sensitive-data obligations, and human approvals
  • build tenant-safe RAG and controlled tool workflows
  • run durable work with explicit retry, lease, and dead-letter behavior
  • integrate with Batoi RAD, Laravel, Symfony, REST endpoints, UIF, queues, and vector stores

The public repository is available at github.com/batoisystems/batoi-aif.

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.