larswiegers / laravel-ai-evaluation
Run AI/LLM evals for your AI features
Package info
github.com/LarsWiegers/laravel-ai-evaluation
pkg:composer/larswiegers/laravel-ai-evaluation
0.1.6
2026-09-13 13:21 UTC
Requires
- php: ^8.3
- illuminate/console: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
- laravel/ai: >=0.5.0 <0.12.0
Requires (Dev)
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.5
- phpunit/phpunit: ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1
- dev-focus-artisan-eval-runner
- dev-feature/0.0.16
- dev-feature/0.1.4
- dev-feature/v0.1.2-feedback
- dev-feature/v0.1.1-feedback
- dev-feature/v01-feedback
- dev-feature/ai-as-taylor-feedback
- dev-feature/testing-on-more-agents
- dev-feature/dx
- dev-feature/initial-version
This package is auto-updated.
Last update: 2026-09-13 13:22:27 UTC
README
Test real Laravel AI agent behavior with repeatable evals that run through Artisan and CI.
Quick start
composer require --dev larswiegers/laravel-ai-evaluation php artisan make:ai-evals refund-policy php artisan ai-evals:run
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: