Vercel AI SDKAI SDK 7 · TypeScript · Node.js 20+
0%
All frameworks
00Vercel AI SDK overview4 min01Installation and setup5 min02generateText: a first model call6 min03Providers, models and API keys5 min04MockLanguageModelV4: a readable stand-in8 min05Prompts, system instructions and messages6 min06Streaming with streamText6 minSection quiz5 questions
07Typed output with Output.object and Zod7 min08Tools and multi-step calls7 min09Tool approval before a refund7 minSection quiz5 questions
10Agents with ToolLoopAgent6 min11Loop control: stopWhen and prepareStep6 min12Middleware: logging and default settings6 min13Errors and retries6 min14A chat API route and useChat7 min15Testing with node:test and mock models7 min16Support desk with approval and tests9 minSection quiz5 questions
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
17 small wins to finish your pathNext lesson →

Output and tools quiz

Question 1 of 5

How does Output.object tell the model what to return?

Back toTool approval before a refundApps →

Getting one wrong here is cheaper than getting it wrong in your own code.