Gain a Splash of New Skills - Coursera+ Annual Nearly 45% Off
Foundations for Product Management Success
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to build an AI agent from scratch in Python with this beginner-friendly tutorial. Follow a comprehensive step-by-step guide covering everything from basic setup to advanced functionality. Discover how to work with popular frameworks like LangChain, integrate various LLMs including Claude and GPT, provide your agent access to different tools, and structure outputs for practical code implementation. The tutorial includes a demonstration of the finished agent, setup requirements, code configuration, API key acquisition, basic LLM functionality, structured output modeling, prompt templates, agent creation and execution, output parsing, integration of prebuilt tools, and implementation of custom tool calling. All code resources are available on GitHub, with additional links for learning Python virtual environments and obtaining necessary API keys.
Syllabus
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
Taught by
Tech With Tim