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

preview_player
Показать описание
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 🎞

⏳ 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
Рекомендации по теме
Комментарии
Автор

Outstanding video (again) Tim! I'm a civil engineer with an intertest in coding, not a coder or IT pro. Your approach is ideal, and much more useful than many other videos. With your instruction, I can actually do something very useful. Thank you!

johnpaine
Автор

This is an excellent work, Tim! Appreciate if you can cover different Agentic AI frameworks and the real world business scenarios in your upcoming tutorials. Thank you for your efforts!

prashantnaik
Автор

Thank you, I code along with you, and the agent worked . I used Gemini. and it worked well. I had problem with save_to_text. did not work. but in general . am so satisfied with the result, thanks to you. keep going

-wogk
Автор

There is a reason why you have 1M+ subscriber, . It is a great tutorial I've been looking for.

GodLvUnMe
Автор

The beginning where you recorded yourself while explaining/introducing the video was more immersive than this current text only type of introduction and discussion.

ariethegamedev
Автор

This was really excellent Tim, thank you for the walk through and the project files. super helpful description of what and why your choices were.

hamradiowithkevin
Автор

Can you make a video on ai agent tools that automates website's daily works!

kiranbhairava
Автор

Always so much value from your courses Tim! This is precisely what I needed to learn. Now to implement into Streamlit

paulgallovich
Автор

Awesome video, very useful and easy to follow. As an idea, could you do a follow up video where an agent can talk to another agent to show how they can work together to accomplish a task?

mjbates
Автор

Great work Tim bhai! All new tech tutorial should be like this, open ended, while still giving out the audience the taste of all the major weapons they can use to create the big hiatus! Its then upon the imagination and ofcourse need of the audience! Cool great work!

abhishekpal
Автор

As Brilliant as always Tim. You are a true inspiration for me from the last 2 years. Lots of Love and appreciation from Pakistan. Keep Shining 🥰

KCHJAND
Автор

Thanks Tim. Your content is valuable and your explanation is superb❤

alimihakeem
Автор

This was an awesome tutorial, thank you!

jenkins
Автор

It is a great video to learn
I just started with ai agents, hoping to learn alot from you tim❤

ShankarJadhav-bz
Автор

3:23 ERROR: Could not find a version that satisfies the requirement python-dotevn (from versions: none)
ERROR: No matching distribution found for python-dotevn

naICCna
Автор

hey Tim, This is quite amazing we want a new MCP integration using complete python for all purpose works.

rakeshkumarrout
Автор

Great tutorial on the latest AI technology and projects! Nice

Duckling-nr
Автор

hey tim i was wondering if we can make it so 2 or more ai work on a task cause then insted of just having an assistant i would have a whole team

lifeofriko
Автор

thank you so much for taking all this time to explain things -

a question here, why use Pydantic output parser instead of .with_structured_output() function ... I think it is available on most of the chatmodel classes by Langchain

thank u

theanonymous
Автор

im on windows (spesifically Windows 11 pro) and i cant get past the .\venv\Scripts\activate part it says that all programs are disabled by default and that caused an error so i cant activate my environtment can anyone help?

ZwingliSavanarolaLubis
visit shbcf.ru