Build your first agent
Understand the agent loop, set up your environment, and connect models to tools they can use.
A practical guide with Python
A Hands-On Guide with Python
Turn an idea into an agent that can act. Learn the tools, memory, coordination, and evaluation behind useful AI systems — one chapter at a time.
One purchase in USD. PDF + Python code. 7-day full refunds.
Purchases are not open yet.
Your full purchase email and order reference will appear in the PDF watermarks.

TAKE A LOOK INSIDE
For Python developers who want to move from talking to a model to building systems around one.
Understand the agent loop, set up your environment, and connect models to tools they can use.
Work with memory and retrieval, plan a sequence of actions, and coordinate multiple agents.
Explore evaluation, testing, safety, and the engineering decisions that support reliable systems.
Explore streaming, multimodal inputs, database tools, voice interfaces, and fine-tuning.
YOUR DIGITAL EDITION
A single ZIP with your purchased files. Save it, unpack it, and start reading.
Read a sampleSelectable text, a linked table of contents, and clear code typography.
Examples and supporting files organized by chapter.
BEFORE YOU BEGIN
The book is written in English for readers with basic Python knowledge. It introduces the building blocks of AI agents and progresses to more advanced systems. Read the sample to see whether the approach fits you.
Some examples run locally. Others require optional software, provider accounts, or paid API usage. Those services are not included in the ebook price. The code includes both runnable projects and teaching snippets.
After your payment is confirmed, a download button appears on the purchase confirmation page. We also email your download link. You do not need to create an account.
No. Each book is a one-time purchase. Download your files and keep them for offline use.
Yes. Email benky.tide@gmail.com within 7 calendar days of purchase for a full refund, including if you have downloaded the files. See the refund policy for the request process.
The ebook is for personal use; the companion source code has its own MIT license.
AI Craft Mastery is an educational publishing website by Yanfei Li, an independent author based in Knoxville, Tennessee, United States. For book questions, purchase help or refunds, email benky.tide@gmail.com. Read our purchase and privacy information.
YOUR NEXT CHAPTER
Building AI Agents from Scratch · By Yanfei Li
PDF + Python code · One-time purchase
Watermarked with your full purchase email and order reference.