Video course · 14 chapters · 41 min · certificate
Pydantic AI for Production: Build Type-Safe LLM Agents
A hands-on crash course in Pydantic AI: agents, structured output, streaming, message history, instructions, tools, dependency injection, toolsets, retries, built-in web search and code execution, embeddings and MCP.
What you'll learn
- Set up Pydantic AI and run a first agent
- Return validated structured output
- Stream responses and manage message history
- Add tools with dependency injection
- Use toolsets, timeouts and built-in tools
- Work with embeddings and MCP servers
Chapters
14 chapters · 41:14-
5:11
01Setup Members
Intro and environment setup
What Pydantic AI is and how to install it with your API keys.
-
2:57
02Agents Members
A simple agent
Creating an Agent with a model and running a prompt.
-
1:51
03Output Members
Structured output
Getting validated Pydantic models back instead of plain text.
-
1:48
04Streaming Members
Streaming responses
Streaming output instead of waiting for the full answer.
-
2:15
05Memory Members
Message history
Passing previous messages so the agent keeps context.
-
2:00
06Prompts Members
Instructions versus system prompts
The difference between instructions and system prompts in multi-turn runs.
-
3:16
07Tools Members
Tool use
Giving the agent Python functions it can call.
-
10:38
08Dependencies Members
Dependency injection and context
Passing context like a user or database connection into tools via deps.
-
2:14
09Tools Members
Toolsets
Grouping tools into reusable toolsets.
-
1:35
10Reliability Members
Timeouts and retries
Setting tool timeouts and retries for reliability.
-
1:52
11Built-ins Members
Built-in web search
Using the built-in web search tool.
-
1:22
12Built-ins Members
Built-in code execution
Letting the agent execute Python code to answer questions.
-
1:01
13Embeddings Members
Embedding models
Creating embeddings: vectors in N-dimensional space.
-
3:14
14MCP Members
MCP integration
Connecting MCP servers to a Pydantic AI agent, and wrap-up.
Jobs this course suits
Our AI checked this course against 500 jobs; these get the most out of it. Each job links to its learning path.