Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Create Your Own AI Agents from Scratch - Step-by-Step Tutorial

Python Lessons via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build AI agents from the ground up in this comprehensive 29-minute Python tutorial that demonstrates how to integrate OpenAI's API with custom tools and structured data validation. Master the fundamentals of setting up OpenAI client connections, managing API keys, and sending chat completions before progressing to advanced concepts like enforcing JSON schemas with Pydantic for reliable, machine-readable responses. Discover how to define and register custom Python functions including weather lookups and database queries, enabling your AI agent to select and execute the appropriate tools dynamically. Explore retrieval-augmented generation (RAG) implementation by building a knowledge base for real-world question-answering scenarios, then advance to sophisticated tool chaining techniques that allow agents to execute multi-step operations like fetching weather data for multiple cities and performing calculations. Gain practical insights into debugging strategies and deployment best practices essential for production environments, with detailed timestamps guiding you through API setup, Pydantic integration, tool registration, retrieval agent construction, advanced chaining examples, and troubleshooting methodologies.

Syllabus

0:00 Intro & Why AI Agents Aren’t Magic
2:00 OpenAI API Setup & Basic Requests
4:06 Using Pydantic for Structured JSON Responses
6:34 Defining & Registering Your First Tool
14:00 Building a Retrieval Agent with a Knowledge Base
18:40 Advanced Tool Chaining Example
24:30 Debugging & Best Practices
27:00 Wrap-Up & Next Steps

Taught by

Python Lessons

Reviews

Start your review of Create Your Own AI Agents from Scratch - Step-by-Step Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.