Looking to hire Laravel developers? Try LaraJobs

laravel-ai-evaluation maintained by larswiegers

Description
Run AI/LLM evals for your AI features
Author
Last update
2026/09/13 15:21 (dev-master)
License
Downloads
3 311
Tags

Comments
comments powered by Disqus

Laravel AI Evaluation

Latest Version on Packagist Total Downloads GitHub Actions Laravel Compatibility

Laravel AI evaluation

Test real Laravel AI agent behavior with repeatable evals that run in Pest, Artisan, and CI.

Quick start

composer require --dev larswiegers/laravel-ai-evaluation
php artisan make:ai-evals refund-policy --type=pest
vendor/bin/pest tests/AgentEvals
use LaravelAIEvaluation\AIEval;

it('answers refund policy questions', function () {
    AIEval::agent(App\Ai\Agents\SupportAgent::class)
        ->input('Can I get a refund?')
        ->expectContains(['refund', '30 days'])
        ->run()
        ->assertPasses();
});

For installation, expectations, standalone reports, and CI output formats, see the docs: