Video course · 15 chapters · 134 min · certificate
Agentic AI in Python: Build a Coding Agent with Google Gemini API
Build a coding agent in Python with the Gemini API: what agents are, four file tools, project setup with uv, API calls, CLI args and history, a verbose flag, building get-files, read-file, write-file and run-python tools, security, the system prompt, function declarations, function calling and the agent loop.
What you'll learn
- Explain what makes an AI agent
- Set up a Python project and call the Gemini API
- Build file and execution tools
- Declare functions for the LLM
- Implement function calling and an agent loop
- Understand the security risks of agent-run code
Chapters
15 chapters · 134:23-
6:03
01Intro Members
Why build an agent
Course overview and what an agent is.
-
9:41
02Setup Members
Four tools and setup
The four tools, prerequisites and uv setup.
-
9:00
03API Members
Gemini API basics
Making the first API call.
-
5:55
04CLI Members
CLI arguments and history
Accepting prompts and tracking conversation.
-
5:44
05Debug Members
Verbose flag and test project
A verbose flag and a calculator test project.
-
13:16
06Tools Members
Tool 1: get files info
Listing a directory safely.
-
8:45
07Tools Members
Tool 2: get file content
Reading files with truncation.
-
9:06
08Tools Members
Tool 3: write file and security
Writing files and the dangers of running AI code.
-
10:30
09Tools Members
Tool 4: run Python file
Executing Python with subprocess.
-
15:10
10Prompting Members
The system prompt
Guiding the agent's behaviour.
-
8:28
11Tool calling Members
Declaring functions
How LLMs call functions via schemas.
-
7:41
12Tool calling Members
All declarations
Adding schemas for every tool.
-
8:11
13Tool calling Members
Function calling logic
Executing the model's function calls.
-
9:41
14Agent Members
The agentic loop
Looping until the task is done.
-
7:12
15Demo Members
Final demo: fixing a bug
The agent fixes a bug on its own.