Skip to content

Commit a62d3a7

Browse files
nearestnaborsgithub-actions[bot]claude
authored
Vercel ai sdk tutorial (#646)
* Updaing and aligning Vercel tutorial to docs. * adding more next steps and comments * 🤖 Regenerate LLMs.txt * Update app/en/guides/agent-frameworks/vercelai/page.mdx * Update app/en/guides/agent-frameworks/vercelai/page.mdx * Refactor code formatting and improve readability in Vercel AI guide - Adjusted indentation and line breaks for better clarity in code snippets. - Enhanced the layout of callout sections for improved user experience. - Updated comments in the `AuthPendingUI` function for better understanding. * recommend using required settings * Fix Vercel AI SDK v6 tool schema format Use inputSchema instead of parameters for tool definitions - this is the correct format for AI SDK v6. The previous format caused OpenAI to reject tools with "type: None" errors. Also simplified toVercelTools adapter by removing unnecessary schema validation since the real issue was the property name. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add ARCADE_USER_ID clarification, remove placeholder repo link Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Replace any with unknown for stricter TypeScript configs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Remove redundant markdown comment, link to AI Elements docs MessageResponse handles markdown automatically - no need for inline comments explaining this. Added link to AI Elements docs for readers who want to learn more about the features. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fix toolName extraction for AI SDK v6 In Vercel AI SDK v6, toolName is a property on the tool part, not derived from the type string. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Update app/en/guides/agent-frameworks/vercelai/page.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update app/en/guides/agent-frameworks/vercelai/page.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update app/en/guides/agent-frameworks/vercelai/page.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update app/en/guides/agent-frameworks/vercelai/page.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update app/en/guides/agent-frameworks/vercelai/page.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Disable alex.Ablist and Google.Ellipses in Vale config - Allow "disabled" for tech contexts (buttons, features) - Allow ellipses in code examples and UI text Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fix broken link to security page Remove non-existent #identifying-users anchor Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Combine dependency and AI Elements install into one step Cleaner flow with both commands in the same code block Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add callout explaining AI Elements install location Components are installed to components/ui/ directory Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fix redirect chain for vercel-ai/typescript Point directly to /vercelai instead of intermediate /vercelai/using-arcade-tools Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Remove accidental backup file Leftover from merge conflict resolution Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add authUrl validation to prevent infinite polling - Guard handleAuthClick to not open empty URLs - Show error message when authUrl is unavailable - Prevents infinite polling loop on missing auth URLs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fix auth completion callback race condition - Store onAuthComplete in ref to avoid cleanup race - Remove timeoutRef from cleanup (let completion callback fire) - Fixes issue where regenerate() never called after auth success Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Improve system prompt for Gmail and action confirmation - Guide LLM to use "in:sent" query for sent emails - Instruct LLM to confirm actions after completion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add auto-focus to input after LLM responds Improves UX by refocusing textarea when response completes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Rachel Lee Nabors <nearestnabors@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent dfe410c commit a62d3a7

8 files changed

Lines changed: 962 additions & 808 deletions

File tree

.vale.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ Google.Will = NO
4040
# "execute" etc. flagged as profanity - not useful for tech docs
4141
alex.ProfanityUnlikely = NO
4242
43+
# "disabled" is valid in tech contexts (disabled buttons, disabled features)
44+
alex.Ablist = NO
45+
46+
# Ellipses are valid in code examples and UI text
47+
Google.Ellipses = NO
48+
4349
# Acronyms like API, SDK, MCP are standard in our docs
4450
Google.Acronyms = NO
4551
@@ -69,5 +75,7 @@ write-good.TooWordy = NO
6975
Google.Contractions = NO
7076
Google.Will = NO
7177
alex.ProfanityUnlikely = NO
78+
alex.Ablist = NO
79+
Google.Ellipses = NO
7280
Google.Acronyms = NO
7381
write-good.Passive = NO

app/en/guides/agent-frameworks/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Arcade seamlessly integrates with your favorite agent frameworks and MCP clients
5959
<PlatformCard
6060
name="Vercel AI"
6161
icon="https://avatars.githubusercontent.com/u/14985020?s=200&v=4"
62-
link="/guides/agent-frameworks/vercelai/using-arcade-tools"
62+
link="/guides/agent-frameworks/vercelai"
6363
type="Agent Framework"
6464
/>
6565
</div>

app/en/guides/agent-frameworks/vercelai/_meta.tsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)