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].
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