Skip to main content
NewEpisode 3a is out: Carry the conversation onWatch →
AI agents · Course

Build an Always-On Assistant with Pydantic AI

One project for the whole course: a personal assistant built on Pydantic AI that answers you on Telegram and, by the end, keeps working while you are away. Each episode adds one working piece to the same bot and explains one mechanism, following a real recorded run through your code and into the framework's own source, pinned at pydantic-ai v2.71.0. Every episode ends with a build assignment checked by tests. English narration with Chinese and English subtitles. Not affiliated with Pydantic.

Source code shown in the videos is quoted from pydantic/pydantic-ai (MIT licence), pinned at v2.71.0. This course is not affiliated with or endorsed by Pydantic; the explanations and assignments are original. Course code and assignments · pydantic/pydantic-ai at v2.71.0 · License

6 parts out1.2 h of video18 episodes plannedEN · 中文
What you get
  • A video for each part, with chapters
  • Slides to read at your own pace (PDF)
  • A code index with every file:line shown, linked to the source
  • Practice questions answered from real runs
Good fit
  • Python developers who have called an LLM API and now want an agent that does real work
  • People who want to know what an agent framework does underneath, read from its source
  • Anyone planning a personal assistant of their own: messages, email, calendar, reminders
Not for
  • A tour of every Pydantic AI feature: the course follows one project
  • No-code agent builders
  • Official Pydantic material: this is an independent course

Syllabus

FreeFree with accountMembersPlanned

Conversation

1 parts · 12 min
3aCarry the conversation on11:32
3bRemember across restarts
3cAnother channel: the terminal
3dTest whole conversations with a stand-in model

Always on

Planned
4aOne at a time: a queue per chat
4bCut in, or stop it
4cReminders that actually fire
4dOne way out: the outbox
4eRoutines and the morning brief

Ask first

Planned
5aAsk before it writes
5bApproval buttons
5cDraft cards
5dWhen nobody is there to ask

Security

Planned
6aUntrusted input
6bSecrets stay out of the chat

Connections

Planned
7aWoken by events
7bAny app, through MCP
7cWhen an MCP server asks you
7dConnect your accounts
7eToo many tools: load them on demand
7fOpen web pages

Memory

Planned
8aFacts it always carries
8bA work log it can search
8cCompaction
8dConflicts and forgetting
8eShow it once: skills

Reaching you

Planned
9aShould it bother you?
9bEval sets
9cVoice and photos
9dProgress you can see

Quality

Planned
10aSee one run
10bAuto-review

Production

Planned
11aMove it to a server
11bWhen the model is down

Long work

Planned
12aBackground tasks
12bSub-agents
12cPick up after a crash

Cost

Planned
13aPrompt caching
13bA spending budget

Any model

Planned
14aThe model is a setting
14bSame tools, different habits
14cA model on your own server

Check before you switch

Planned
15aThe switch checklist
15bSeconds and cost, side by side

More than one person

Planned
16aWho is asking
16bEach person's data stays theirs
16cAdmins and members
16dEach person connects their own accounts
16eSharing one bot fairly

Audit

Planned
17aThe audit log
17bA log you can trust, and a way to forget

Deploy for a company

Planned
18aSecrets from outside
18bOne image
18cThe server, from a file
18dUpgrade without losing anything