Build your first agent
Learn what AI agents are, work with models and prompts, and set up your Python environment. Build your first agent, design tools, and connect them through MCP.
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.

TAKE A LOOK INSIDE
For Python developers who want to move from talking to a model to building systems around one.
Learn what AI agents are, work with models and prompts, and set up your Python environment. Build your first agent, design tools, and connect them through MCP.
Manage memory and state, plan actions, and retrieve documents with RAG. Learn when multiple agents help, how they communicate, and how to build coordinated systems.
Evaluate and test agent behavior, handle failures and safety boundaries, and prepare agents for production deployment.
Stream responses, explore fine-tuning, work with multimodal inputs, query databases with SQL, and build voice interfaces for agents.
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
PDF + Python code · One-time purchase