Find the perfect coding resourcesLearn more

Build an AI Agent in Python

Boot.devBoot.dev
Recommended
Meet Your Instructor
Lane Wagner avatar

Lane Wagner

Instructor

Lane is a back-end engineer and the lead instructor of Boot.dev. He has taught over one million students worldwide, on Boot.dev, FreeCodeCamp, YouTube and the Backend Banter podcast. Lane worked as a backend engineer writing Go, Python and TypeScript, then moved into engineering management and a couple of years later left to build Boot.dev full-time.

12 hours

Completion

Certificate included

Format

Interactive coding

Subscription

What You'll Learn

Build a toy agentic code editor in Python using the Gemini API

Understand the fundamentals of LLMs and their application in coding tools

Implement function calling in your AI agent to modify and execute Python code

Create a feedback loop for your agent to enhance its bug-fixing capabilities

Develop practical skills in using AI to assist in software development tasks

Overview

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 free 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!

Table of Contents
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

Share Your Experience

Sign in to leave a review and help others

No reviews yet. Be the first to review!