Agentic Python: Build Production AI Agents from Scratch
English | September 27, 2026 | ASIN: B0HL5SB485 | 222 pages | Epub | 195.37 KB
Most AI agent tutorials start with a framework. This book starts with the loop.An agent is a model in a loop: it decides, acts through a tool, observes the result, and decides again. Most agent frameworks abstract that loop. Learn the framework first, and when something breaks - a malformed tool call, a runaway loop, unexpected cost - you may find yourself debugging an abstraction you never fully understood.Agentic Python teaches you to build production AI agents in plain Python, calling model APIs directly over HTTP. Across 18 chapters, you build one real application: a research assistant that finds sources, reads them, cites them, and says so when it isn't sure. Each chapter adds one capability, and every code listing comes from a companion GitHub repository with a full test suite that runs offline.You'll learn how to:Run the same agent on Anthropic or OpenAI through one interface, so switching providers is a configuration changeGet reliable structured output with schemas, validation, and automatic repairBuild tools, a dispatch table, and the core agent loop from scratchGive your agent persistent memory with Postgres and pgvector, and search your own documentsPlan multi-part questions, coordinate specialist agents, and require human approval before risky actionsUse and expose tools over the Model Context Protocol (MCP), implemented by hand and interoperability-tested against the official MCP Python SDKAdd retries, timeouts, guardrails, tracing, and replayBuild a realistic evaluation dataset that checks citations against what the agent actually read, with a regression gate that runs in CIDefend against prompt injection, scope tool permissions, and sandbox model-generated codeShip the system as an authenticated API with per-user budgets, structured logs, and Docker deploymentOnce you understand the loop, you rebuild part of the assistant in LangGraph, side by side with your own code, and test that both implementations produce the same result. Frameworks make sense once you know what they abstract.Written for Python developers who are new to agents. No machine learning background required.
Recommend Download Link Hight Speed | Please Say Thanks Keep Topic Live
Links are Interchangeable - Single Extraction