-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add tool approval integration for Vercel AI adapter #3772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bendrucker
wants to merge
19
commits into
pydantic:main
Choose a base branch
from
bendrucker:vercel-ai-tool-approval
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+538
−17
Open
Changes from 3 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1160591
Add tool approval integration for Vercel AI adapter
bendrucker 85a415b
Add robustness improvements and tests for tool approval
bendrucker 62f7262
Skip doc examples that are incomplete snippets
bendrucker f18cda6
Also skip linting for incomplete doc snippets
bendrucker cf6dad7
Add tests to cover edge cases for tool approval extraction
bendrucker 2c8a0af
Use public interface for denied_tool_ids tests
bendrucker f731bc7
Fix coverage: add pragma comments and caching test
bendrucker 296611a
Address PR review: add tests and fix documentation
bendrucker 2359f4e
Address PR review comments for tool approval
bendrucker fb5bc2e
Use 'AI SDK UI v6' instead of 'AI SDK v6' for frontend requirement
bendrucker c077afb
Remove unnecessary tool_call_id checks (always present)
bendrucker e2e967c
Inline extraction into from_request and remove private method tests
bendrucker 33eabc7
Consolidate tool approval tests to use from_request()
bendrucker e885d43
Remove trailing blank lines (ruff)
bendrucker 676530b
Add edge case tests for tool approval extraction coverage
bendrucker 9eebd80
Fix coverage: remove duplicate starlette check function
bendrucker a908ef7
Add test for explicit deferred_tool_results parameter
bendrucker 33904dc
rm dead pragma no cover
bendrucker 638151a
Merge branch 'main' into vercel-ai-tool-approval
bendrucker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.