Skip to content

Comments

Fix example tools for AI SDK v6 and remove noisy warning#223

Merged
sethconvex merged 2 commits intomainfrom
fix-v6-examples-and-warnings
Feb 20, 2026
Merged

Fix example tools for AI SDK v6 and remove noisy warning#223
sethconvex merged 2 commits intomainfrom
fix-v6-examples-and-warnings

Conversation

@sethconvex
Copy link
Contributor

@sethconvex sethconvex commented Feb 11, 2026

Summary

  • Update example createTool calls to AI SDK v6 syntax (argsinputSchema, handlerexecute)
  • Remove noisy console.warn for paginated tool results (expected pagination behavior, not an error)
  • Remove unused ToolApprovalRequest/ToolApprovalResponse imports from mapping.ts

Cherry-picked from #217 (commits 8640c1a, 77817f7).

Test plan

  • npm run build passes
  • npm run typecheck passes
  • Example code compiles with AI SDK v6

🤖 Generated with Claude Code

@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

Warning

Rate limit exceeded

@sethconvex has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 17 minutes and 17 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-v6-examples-and-warnings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sethconvex sethconvex changed the title Remove noisy warning for paginated tool results Fix example tools for AI SDK v6 and remove noisy warning Feb 11, 2026
@sethconvex sethconvex force-pushed the fix-v6-examples-and-warnings branch from 29f3c1d to a19d166 Compare February 11, 2026 01:14
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/get-convex/agent/@convex-dev/agent@223

commit: b25ec92

@sethconvex sethconvex force-pushed the fix-v6-examples-and-warnings branch from a19d166 to c209e89 Compare February 20, 2026 06:34
@sethconvex sethconvex force-pushed the fix-v6-examples-and-warnings branch from c209e89 to 0eb6f6a Compare February 20, 2026 07:12
@sethconvex sethconvex changed the base branch from rc/ai-sdk-v6 to graphite-base/223 February 20, 2026 07:20
When pagination cuts off a tool-result from its tool-call, we handle it
gracefully by creating a standalone tool part. The warning was noisy for
this expected pagination behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sethconvex sethconvex force-pushed the fix-v6-examples-and-warnings branch from 0eb6f6a to 17cd6b6 Compare February 20, 2026 07:21
@graphite-app graphite-app bot changed the base branch from graphite-base/223 to main February 20, 2026 07:21
- Update createTool calls in examples: args -> inputSchema, handler -> execute
- Fix lint errors in check-upgrade.js (Node.js globals, unused catch var)
- Remove unused ToolApprovalRequest/Response imports from mapping.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sethconvex sethconvex force-pushed the fix-v6-examples-and-warnings branch from 17cd6b6 to b25ec92 Compare February 20, 2026 07:21
@sethconvex sethconvex marked this pull request as ready for review February 20, 2026 07:25
Copy link
Contributor Author

sethconvex commented Feb 20, 2026

Merge activity

  • Feb 20, 7:25 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 20, 7:25 AM UTC: @sethconvex merged this pull request with Graphite.

@sethconvex sethconvex merged commit c1571ef into main Feb 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants