Build an AI Agent From Scratch in Python - Tutorial for Beginners

Author: Tech With Tim
Published At: 2025-03-14T00:00:00
Length: 34:20

Summary

Description

Thanks to Microsoft for sponsoring this video! Submit your #CodingWithCopilot story for a chance to be featured in an upcoming video!

In this video, you'll learn how to build an AI agent from scratch in Python. I'll walk you through everything step-by-step. This will be very beginner friendly, and you'll learn how to make something quite interesting in Python with some popular frameworks like LangChain. I'll show you how to use various LLMs like Claude or GPT, how you can give the agent access to various tools, and how you can structure the output of the agent so you can use it in your code.

🎞 Video Resources 🎞

Code in this video: https://github.com/techwithtim/PythonAIAgentFromScratch

Learn Python Virtual Environments: https://www.youtube.com/watch?v=Y21OR1OPC9A

Get Your Anthropic API Key: https://console.anthropic.com/settings/keys

Get Your OpenAI API Key: https://platform.openai.com/api-keys

⏳ Timestamps ⏳

00:00 | Overview

00:35 | Agent Demo

01:38 | Setup/Requirements

06:53 | Basic Code Setup/Imports

08:37 | Using Claude or GPT

10:00 | Getting Your API Key

11:32 | Basic LLM Functionality

12:43 | Structured Output/Models

15:42 | Prompt Templates

17:33 | Creating & Running the Agent

21:00 | Output Parsing

23:39 | Adding Prebuilt Tools

30:48 | Custom Tool Calling

Hashtags

#CodingWithCopilot #Sponsored

Translated At: 2025-07-12T13:34:30Z

Request translate (One translation is about 5 minutes)

Version 3 (stable)

Optimized for a single speaker. Suitable for knowledge sharing or teaching videos.

Recommended Videos