Structured Laravel AI agents work as they normally do:

$result = $session->prompt('Score this draft against our content rubric.');

$score = $result->structured['score'];

The validated value is stored on the terminal run record and emitted with run.completed.


Back to top

A community package, not affiliated with or endorsed by Laravel. Released under the MIT licence.

This site uses Just the Docs, a documentation theme for Jekyll.