We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Build an AI Agent in Python

Build an LLM-powered command-line program capable of reading, updating, and running Python code using the Gemini API. Learn how LLMs and agentic coding tools work.

What will you learn?

Write a toy agentic code editor in Python, similar to Claude Code or Cursor's Agent Mode. Understand how agents work from scratch by using the Google Gemini API to create an LLM-powered code agent. You'll use function calling and feedback loops to build an agent that can find and fix bugs in a real project!

Chapter List

1
LLMs
Learn how LLMs work and send prompts to the Gemini API using the Python client library
2
Functions
Write the functions your AI agent will need to modify files and run Python code
3
Function Calling
Give your AI agent the ability to call functions based on its system prompt and context window
4
Agents
Give your tool a proper feedback loop to make it truly "agentic" and fix a real bug

Join 14,714 students in the Build an AI Agent in Python course

Read reviews of their learning experiences

Great step up from previous projects. Time of the simple guided projects ended here with building first agent, so be prepared and practice those older concepts more that you have learned previously, it WILL make your life easier.

(5/5)
Jere Kukkohovi profile image

Jere Kukkohovi

Helsinki Metropolitan Area, Finland

this was by far the hardest challenge I've done so far. Being able to code something that has a use case, and I can see how it works was awesome.

(5/5)
peyton Morrow profile image

peyton Morrow

United States

Really cool and easy to follow course. In later stages you even have to understand some things on your own without 1 to 1 code available, but boots was always there to help.

(5/5)
Marvin  profile image

Marvin

Germany

very useful course! Thanks

(5/5)
Karolina Markowska profile image

Karolina Markowska

poland

The best ai agent course for beginners!

(5/5)
JJ Huang profile image

JJ Huang

United States

This was a good project, it was the right ammount of hard and doing it yourself

(5/5)
Abdul Rehman profile image

Abdul Rehman

Pakistan

a really big step up, but worth the time investment, brought alot of concepts together from the previous courses.

(5/5)
Jack Aldus profile image

Jack Aldus

United Kingdom

While there weren't any functional programming assignments I really enjoyed toying with llms! This project is exceptionally fun and interesting, thank you!

(5/5)
no name profile image

no name

Russia

Immediately useful knowledge

(5/5)
Dominic Nerz profile image

Dominic Nerz

Germany

Showing 1-9 of 535

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.