Skip to content

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

Merged
manovotny merged 2 commits into
nicolas/guides-ai-vercel-ai-sdkfrom
nicolas/guides-ai-vercel-ai-sdk-advanced
Jul 24, 2026
Merged

docs(ai): add tool calls, agents, and agent orchestration to Vercel AI SDK guide#3419
manovotny merged 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

@manovotny manovotny self-assigned this Jul 16, 2026
@manovotny
manovotny merged commit 13bf0c1 into nicolas/guides-ai-vercel-ai-sdk Jul 24, 2026
2 checks passed
@manovotny
manovotny deleted the nicolas/guides-ai-vercel-ai-sdk-advanced branch July 24, 2026 18:49
@manovotny

manovotny commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Merged into #3415, so the whole Vercel AI SDK guide group reviews as one unit.

The stack had drifted: this branch sat 38 commits behind its base, and both branches had independently created authorizing-tool-calls.mdx. I kept #3415's prettier-formatted copy and ported this branch's cross-links to the agent pages into it. Everything else came over whole, agents.mdx and agent-orchestration.mdx included.

The combined branch builds clean.

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