{# Course schema: this is what turns a blue link into a result that shows the provider and the level. Only facts that are actually true go in here. #}
ExpoCoder Sign in Start free

AI Agents in Python

Build autonomous LLM agents from scratch: tool use, the ReAct reasoning loop, memory, planning, RAG, multi-agent systems, reflection and guardrails. Every lesson runs real Python with a deterministic LLM stub.

21 lessons about 7 hours Hard
Learn it by writing it.

Every lesson runs real code in your browser, checked the moment you submit. No installing anything, no setup, no waiting.

Start AI Agents in Python free

What this course covers

  1. What Is an AI Agent?
  2. The LLM Is the Brain
  3. Prompts and Roles: Steering the Brain
  4. Reading the Model's Decision
  5. Tools: Giving the Agent Hands
  6. Describing Tools in JSON: Function Calling
  7. Parsing Structured Output from LLMs
  8. The Tool-Calling Loop
  9. Build a Calculator Agent (End to End)
  10. ReAct: Reason + Act
  11. Looping Until the Final Answer
  12. Planning: Break a Goal into Steps
  13. Short-Term Memory: Conversation History
  14. Long-Term Memory: Save and Recall Facts
  15. RAG: Giving Agents Knowledge
  16. Similarity Search: Finding the Closest Meaning
  17. Multiple Agents Working Together
  18. Reflection: The Agent Checks Its Own Work
  19. Evaluating Your Agent: Golden Set Testing
  20. Guardrails: Keeping Agents Safe
  21. Capstone: A Research Assistant Agent

Other courses

Computational Thinking

Learn to think like a problem-solver before you write a single line of code. Break big …

Basic Python

Your first Python course, no experience needed. Learn variables, loops, functions, and …

Intermediate Python

Level up your Python with comprehensions, lambdas, error handling, files, modules, and …

Object-Oriented Programming

Master OOP in Python: classes, objects, inheritance, polymorphism, encapsulation, abstr…

Advanced Python

Go deeper in Python: decorators, generators, type hints, regex, JSON, SQLite, testing, …

Data Structures & Algorithms

Core CS: arrays, lists, stacks, queues, hash tables, trees, graphs, sorting, searching,…

Games with Pygame

Build your own 2D games from scratch: the game loop, sprites, movement, collisions, and…

Java

Learn Java from zero, with no programming background needed. Write your first program, …

C++

Learn C++ from zero, with no programming background needed. Start with your first progr…

C

Learn C from zero, with no programming background needed. The language that Unix, Linux…

JavaScript

Learn JavaScript from scratch: variables, types, loops, functions, arrays and objects, …

Web Frontend

Build for the browser: structure pages with HTML, style them with CSS, then use live AP…

See all courses