Skip to content

Add Laravel AI 1.0 support - #19

Merged
pushpak1300 merged 1 commit into
mainfrom
claude/charming-bohr-agfue9
Oct 4, 2026
Merged

pushpak1300 merged 1 commit into
mainfrom
claude/charming-bohr-agfue9

Conversation

@pushpak1300

Copy link
Copy Markdown
Member

Widens the laravel/ai constraint to ^0.7|^0.10|^0.11|^1.0 in the root composer.json, every tool package (Calculator, Database, Exa, JigsawStack, Perplexity, Tavily) and the tool stub.

Why no source changes

I checked the 1.0 upgrade guide. Its breaking changes are about conversation storage (steps/status columns), agent middleware wrapping each step, ConversationStore/Agent contracts, provider/gateway signatures and stream events. None of them touch what the tools use: the Tool contract (description(), schema(), handle(Request)), Laravel\Ai\Tools\Request, the #[Strict] attribute, or Illuminate\JsonSchema. The Tool interface in 1.0.1 is identical.

Verification (against laravel/ai 1.0.1, Laravel 13.34, PHP 8.4)

  • composer test passes: Pint, Rector, PHPStan max, 100% type coverage, Pest 299 tests at 100% code coverage
  • A throwaway smoke test (not committed) ran ToolkitAgent::fake([...ToolCall('CalculatorTool'), 'The answer is 20.']) through the real 1.0 text generation loop. The tool ran, and its result ("20") was stored on the tool call across 2 steps.

Release

Labelled release:minor. Note that the mirrors are still at 1.0.0 requiring laravel/ai: ^0.7; the earlier 0.10/0.11 widenings were never split. So the 1.1.0 release of each tool ships 0.10, 0.11 and 1.0 support together.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VTz7tHdnJH1v2mUA2rubdq


Generated by Claude Code

Widen the laravel/ai constraint to ^0.7|^0.10|^0.11|^1.0 in the root,
every tool package and the tool stub.

None of the 1.0 breaking changes touch the Tool contract, JsonSchema
schema building, Tools\Request or the #[Strict] attribute the tools rely
on, so no source changes are needed. The full suite (pint, rector,
phpstan max, 100% type and code coverage) passes against laravel/ai
1.0.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VTz7tHdnJH1v2mUA2rubdq
@vercel

vercel Bot commented Oct 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
toolkit Ready Ready Preview Oct 4, 2026 3:54pm UTC

@pushpak1300
pushpak1300 merged commit 75f78bc into main Oct 4, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — f8aec35d Deployed Oct 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants