Dinesh Uprety
@dineshuprety ·
Public
Prompt a first-party AI agent
PHPLaravel 13 API example based on official Laravel documentation. Source: https://laravel.com/docs/13.x/ai-sdk
PHP
CodeSnap // free canvas
Prompt a first-party AI agent
<?php
use App\Ai\Agents\CodeReviewer;
$review = CodeReviewer::make()->prompt(
'Review this pull request for risky changes.',
);
return (string) $review;
// Further reading: https://laravel.com/docs/13.x/ai-sdk