jengo / ai
Unified, multi-provider AI SDK and Agentic Engine for CodeIgniter 4 and the Jengo Framework.
dev-main
2026-09-08 12:03 UTC
Requires
- php: ^8.2
- codeigniter4/framework: ^4.6
- jengo/base: ^1.1|dev-main
Requires (Dev)
- phpunit/phpunit: ^11.5
Suggests
- jengo/schema: Required for building autonomous database tools and schema-driven RAG pipelines
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-08 12:04:05 UTC
README
An enterprise-grade, multi-provider generative AI SDK, autonomous agent engine, and vector search toolkit for CodeIgniter 4 and the Jengo Framework.
Documentation: https://lipex-org.github.io/jengophp.com/packages/ai
Installation
composer require jengo/ai php spark jengo:install ai
Quick Start
use Jengo\Ai\Ai; // Simple prompt via default provider $answer = ai('Explain quantum computing in one sentence.')->text(); // Explicit provider & model selection $summary = ai('Summarize this document...') ->driver('openrouter') ->model('anthropic/claude-3.5-sonnet') ->text(); // Structured JSON output $data = ai('Extract user: Alice, 29, designer from Nairobi.') ->schema(['name' => 'string', 'age' => 'int', 'city' => 'string']) ->asArray();
Documentation
For comprehensive guides on multi-provider drivers, tool calling, PHP 8 attributes, Server-Sent Events (SSE) streaming, embeddings, and testing doubles, visit https://lipex-org.github.io/jengophp.com/packages/ai.
License
Released under the MIT License.