Exercises
Hands-on coding exercises to practice AI agent development
P2 Beginner~20 min
Tool Use & Permissions
Build a tool-using agent with allowedTools and canUseTool.
P3 Beginner~25 min
Structured Output
Enforce type-safe responses with outputFormat and Zod schemas.
P4 Intermediate~30 min
Session Management
Multi-turn agents with resume, forkSession, and continue.
P7 Intermediate~35 min
Build an MCP Server
Create tools with createSdkMcpServer() and connect to agents.
P9 Advanced~45 min
Multi-Agent Pipeline
Orchestrate subagents with agents{} and lifecycle hooks.
P11 Advanced~40 min
Permission System
Build a 3-tier permission gate with canUseTool and audit trail.