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,281 students in the Build an AI Agent in Python course

Read reviews of their learning experiences

Fantastic course on getting started with agentic AI. Can't wait to create something far more complex. Thanks guys!

(5/5)
Sherif Tariq profile image

Sherif Tariq

United States

Fascinating! And much harder than earlier courses. But fulfilling!

(5/5)
John McIntyre profile image

John McIntyre

Peru

Great way to get acquainted with Agents

(5/5)
Ever Flores profile image

Ever Flores

Argentina

Building this was the first time I felt like I was really making something cool with code.

(5/5)
Tyler Shetrompf profile image

Tyler Shetrompf

United States

I think this one was better than the other guided projects. Still had to use Boots a lot for help, but made me a bit more confident in what was going on.

(5/5)
Geraldo Sampaio profile image

Geraldo Sampaio

Brazil

Actually crazy inside out how AI Agent works.

(5/5)
Rafal Krawczak profile image

Rafal Krawczak

Poland

Waka eheh wakakakaka eheheh

(5/5)
Baggers  profile image

Baggers

United Kingdom

Love it! I will experiment with it some more!

(5/5)
David Thomas profile image

David Thomas

Czechia

ngl this course was not all that fun, although I learnt some good concepts about agents. Having to deal with API abstractions did not feel right at all, many times It felt like i was being fed the answers without really understanding the details.

(3/5)
Malek Abu Zayed profile image

Malek Abu Zayed

Amman, Jordan

Showing 1-9 of 511

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.