← back
Vercel AI SDK Masterclass: From Fundamentals to Deep Research
Takeaway
Vercel AI SDK provides a small, provider-agnostic set of primitives (generate/stream + tools) that scale from a hello-world prompt up to a multi-step deep-research agent.
Summary
- Walks through the Vercel AI SDK's unified interface: switching between OpenAI GPT-4o, Perplexity Sonar Pro, and Gemini with search grounding by changing one line.
- Demonstrates `generateText`, `streamText`, `generateObject`, `streamObject` primitives and the `tool` helper which gives type-safety between Zod parameters and the execute function.
- Shows tool calling fundamentals: model emits tool calls, SDK auto-invokes execute, and `maxSteps`/`maxToolRoundtrips` lets the model loop until it synthesizes a final answer.
- Builds toward a deep-research clone in Node.js using iterative web search, content scraping, and structured synthesis.
- Highlights sources/citations as first-class on perplexity and Gemini grounded responses.
vercel-ai-sdktool-callingagents
Original description
Full workshop presented by Nico Albanese from Vercel, at the 2025 AI Engineer Summit in New York, Feb 2025: https://x.com/nicoalbanese10 and https://github.com/nicoalbanese workshop content/guidebook: https://aie-feb-25.vercel.app/docs Organizers note: We somehow screwed up and experienced a total loss of the original workshop video. Nico was incredibly gracious about it and rerecorded the whole thing for you! thank you Nico! Please give him a shoutout: https://x.com/nicoalbanese10