Real Python
  • Start Here
  • Learn Python
    Start Learning
    Your Learning Plan →Your personalized Python learning plan Python Tutorials →In-depth articles and video courses Learning Paths →Guided study plans for accelerated learning
    Practice
    Quizzes & Exercises →Check your learning progress Reference →Concise definitions for common Python terms Browse Topics →Focus on a specific area or skill level
    Get Help
    Mentor AI →NewYour personal Python mentor Office Hours →Live Q&A calls with Python experts Community Chat →Learn with other Pythonistas
    Go Deeper
    Live Courses →Live, instructor-led Python courses Books →Round out your knowledge and learn offline Podcast →Hear what’s new in the world of Python
    Unlock All Content and Become a Python Expert →Get unlimited access to all Real Python has to offer
    Unlock All Content →Become a Python Expert
  • More
    Learner Stories Python Newsletter Python Job Board Meet the Team Become a Contributor
  • Search
/
  • Join
  • Sign‑In

🎁 Black Friday Giveaway: Enter for a chance to win prizes worth over $1,090 »

Build an AI Agent From Scratch in Python (Quiz)

Stephen Gruppetta
Build an AI Agent From Scratch in Python Stephen Gruppetta 07:30
Recommended Tutorial Course Slides (.pdf) Sample Code (.zip)
Ask a Question
  • Contents
  • Discussion

Become a Member to take the quiz.

Become a Member to join the conversation.

Course Contents

Overview
75%
  • Build an AI Agent From Scratch in Python
  • Build an AI Agent From Scratch in Python (Overview) 01:12
    Talking to an LLM From Python 02:15
    Wrapping the Model in a Harness 04:55
    Giving the Model a Short-Term Memory 03:24
    Describing a Tool to the Model 04:06
    Splitting Out ask_model() and run_tool() 04:59
    Sending Tool Results Back to the Model 04:57
    Adding a Second Tool 04:38
    Exercise: Run a Tool Call by Name 12:00
    Closing the Agent Loop 02:43
    Exercise: Close the Agentic Loop 10:00
  • Reviewing What You've Learned
  • Build an AI Agent From Scratch in Python (Quiz) 07:30
    Build an AI Agent From Scratch in Python (Summary) 01:44

© 2012–2026 Real Python ⋅ Privacy Policy