Skip to content

docs(ai): add tool calls, agents, and agent orchestration to Vercel AI SDK guide#3419

Draft
nicolas-angelo wants to merge 2 commits into
nicolas/guides-ai-vercel-ai-sdkfrom
nicolas/guides-ai-vercel-ai-sdk-advanced
Draft

docs(ai): add tool calls, agents, and agent orchestration to Vercel AI SDK guide#3419
nicolas-angelo wants to merge 2 commits into
nicolas/guides-ai-vercel-ai-sdkfrom
nicolas/guides-ai-vercel-ai-sdk-advanced

Conversation

@nicolas-angelo

@nicolas-angelo nicolas-angelo commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Companion PR to draft #3415 (Clerk x Vercel AI SDK patterns)
Extends the foundational concepts with added patterns for advanced usage.

Authorizing tool calls: Covers gating individual tool invocations by Clerk permissions, plans, or features. It also introduces authorization patterns with the new tool-approval mechanism arriving in AI SDK v7.

Agents: Introduces a new conceptual framing: Clerk machines as agent identities. It opens the question of extending machine identity to carry first-class agent metadata of its own. For simplicity, the page shows agent configuration persisted on organization_metadata and projected onto each M2M token claims at mint time.

Agent orchestration: Using M2M auth to verify-and-delegate between a parent agent and a subagent inside a resumable workflow.

Status

Draft. Same caveats as #3415, waiting for initial feedback before polishing or further testing.

Preview

https://clerk.com/docs/pr/nicolas-guides-ai-vercel-ai-sdk-advanced/guides/ai/vercel-ai-sdk/getting-started

Test plan

  • pnpm run build:tsx clean
  • Snippet validation in local playground app
  • Companion repo wired up

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
clerk-docs Ready Ready Preview Jun 4, 2026 7:07pm

Request Review

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.

3 participants