learn-code.com
← all courses
AIIntermediate3 lessons · 70 min$59

Building AI Features with the Vercel AI SDK

Streaming chat, tool calling, structured output, and when to reach for an agent. Skip the demo-ware and ship something users actually want.

by Bill Hall

What this course is

A pragmatic guide to shipping AI features that don't feel like demos. We use the Vercel AI SDK (v6) because it's the best-in-class way to talk to models from a React app — streaming, tool calling, structured output all work the same regardless of provider.

What we build

  • A writing assistant that streams suggestions as you type
  • A support bot that can query your own database via tool calls
  • A meeting summarizer that emits strict JSON (title, bullets, action items)

What you'll learn

  • When streaming is the right default (and the one case it isn't)
  • How to think about tools — they're not "AI magic," they're RPC calls with a docstring
  • Structured output: get JSON you can trust, not JSON you have to retry
  • The agent threshold: when a one-shot prompt stops being enough

Stack

  • Next.js 16 App Router
  • AI SDK v6 through the Vercel AI Gateway ("provider/model" strings)
  • No direct provider SDKs — you'll learn to switch models with a one-line change

§/ lessons

1 free preview
  1. 01

    Hello streaming: your first completion

    12 min · free preview

    free
  2. 02

    Tool calling: letting the model use your code

    34 min

    ◎ locked
  3. 03

    Structured output you can trust

    24 min

    ◎ locked

// unlock this course

One-time purchase · $59

lifetime access · updates included