Repository navigation
Add Laravel AI 1.0 support - #19
Merged
Merged
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widens the
laravel/aiconstraint to^0.7|^0.10|^0.11|^1.0in the rootcomposer.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/statuscolumns), agent middleware wrapping each step,ConversationStore/Agentcontracts, provider/gateway signatures and stream events. None of them touch what the tools use: theToolcontract (description(),schema(),handle(Request)),Laravel\Ai\Tools\Request, the#[Strict]attribute, orIlluminate\JsonSchema. TheToolinterface in 1.0.1 is identical.Verification (against
laravel/ai1.0.1, Laravel 13.34, PHP 8.4)composer testpasses: Pint, Rector, PHPStan max, 100% type coverage, Pest 299 tests at 100% code coverageToolkitAgent::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 at1.0.0requiringlaravel/ai: ^0.7; the earlier 0.10/0.11 widenings were never split. So the1.1.0release 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