larswiegers/laravel-ai-evaluation

Run AI/LLM evals for your AI features

Maintainers

Package info

github.com/LarsWiegers/laravel-ai-evaluation

Homepage

pkg:composer/larswiegers/laravel-ai-evaluation

Statistics

Installs: 22

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 5

0.1.5 2026-05-31 17:44 UTC

README

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: