article --summary
The summary
This release of the Laravel AI SDK changes what happens when a tool throws an exception during an agent run. Instead of stopping the whole run, the error is passed back to the model so it can try to recover. Readers who build agents on Laravel will want to know this when designing tool error handling.
The update also adds a way for agent fakes to resume tool approvals inside tests. That makes it easier to write automated tests for flows that pause and wait for approval before continuing.
Editorial note: This is a summary of an article first published by Laravel News. The full piece is on their site.