The Wire · Showcase
LARAVEL AI GETS AGENT CONSOLE AND FORCED TOOL CHOICE
By RepoJournal · Filed · About Laravel
The AI SDK shipped three critical agent improvements overnight that solve the two biggest pain points developers hit when building autonomous systems: no way to test agents interactively, and models that skip tool calls entirely.
The workbench now has an interactive `agent` console command that runs any Agent in a terminal UI with streamed responses, tool cards, reasoning, and approval prompts [1]. This cuts the friction of testing agents from "write a route" to "run a command." Parallel to that, the SDK added `ToolChoice` support across Gemini, OpenAI, and Anthropic [2], letting you force a model to call a tool instead of answering with prose. This fixes the nightmare scenario where an agent confidently claims it performed an action without ever calling the function. A third patch forwards attachment provider options through text generation requests [3], so image detail settings now apply when attaching files to prompts instead of silently vanishing. On the framework side, 13.x added a `WithoutMiddleware` attribute for cleaner controller-level middleware control [4], and Eloquent got the missing `incrementEachQuietly` and `decrementEachQuietly` methods to close a consistency gap [5]. The docs improved the `reduceInto` guide with better pass-by-reference examples [7]. Minor: MCP fixed nested OAuth resource paths when route groups have preceding parameters [6].
One email a day. Unsubscribe in one click.
Keep up with Laravel in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → If you're building agents, upgrade laravel/ai immediately and test the new console command laravel/ai [immediate]
- → Review your agent tool calls - you likely want to force choice on critical operations laravel/ai [plan]
- → Check framework 13.x for WithoutMiddleware if you're managing middleware per-controller laravel/framework [monitor]
References
- [1] Add interactive agent console command for the workbench ↗ laravel/ai
- [2] Add tool choice support for Gemini, OpenAI, and Anthropic ↗ laravel/ai
- [3] Forward attachment provider options to OpenAI text generation requests ↗ laravel/ai
- [4] [13.x] Add WithoutMiddleware controller middleware attribute ↗ laravel/framework
- [5] [13.x] Add incrementEachQuietly and decrementEachQuietly to Eloquent models ↗ laravel/framework
- [6] Fix nested OAuth resource path with preceding route parameters ↗ laravel/mcp
- [7] [13.x] Improve reduce into ↗ laravel/docs