Get Free Shipping on orders over $0
Python AI Agents - Kameron Hussain

Python AI Agents

By: Kameron Hussain, Frahaan Hussain

Paperback | 26 August 2026

Sorry, we are not able to source the book you are looking for right now.

We did a search for other books with a similar title, however there were no matches. You can try selecting from a similar category, click on the author's name, or use the search box above to find your book.

AI assistants that answer questions are everywhere. AI agents that can read a real codebase, write a patch, run the test suite, and open a pull request on their own are a different, much harder problem - and this book teaches you to build one, in Python, from the ground up.This is a hands-on Python programming book, not a prompting guide. It assumes you're comfortable writing Python and have probably used an LLM API or chat-based coding assistant before, but it does not assume any prior experience with agent frameworks. Every technique is introduced from first principles, with real, runnable code in every chapter - no pseudo-code, no placeholders.You will write a tool-use loop with no framework at all, then rebuild the same agent as a LangGraph-style graph, and again on top of a vendor agent SDK (OpenAI Agents SDK, Anthropic Agent SDK, Google ADK), so you understand every layer instead of trusting a black box. You will explore the Model Context Protocol (MCP) for building portable, reusable tool servers.From there, the book turns specifically toward what a coding agent needs beyond generic agent architecture: reading and indexing a real codebase safely, writing diffs instead of blind file rewrites, testing agent behavior deterministically with fake models and pytest, running the real test suite as ground truth rather than trusting a model's self-report, and automating git branches, commits, and GitHub pull requests.The second half of the book covers what it takes to run an agent like this somewhere real: sandboxing so code execution can't do damage, permission and human-approval gates so autonomy stays bounded, multi-agent coordination for tasks too large for one agent, full observability with tracing and replay, deployment into CI/CD, and cost and latency strategy so a production agent doesn't quietly become an unmanageable bill. The book closes with a complete capstone agent that takes a GitHub issue and returns a reviewed, tested pull request, built entirely from the pieces introduced in earlier chapters.Every chapter leaves you with working code you can adapt to your own repositories. Whether you're a backend engineer curious how coding-agent products work under the hood, a team evaluating whether to build an internal coding agent, or an engineer who already ships agents and wants to firm up testing, sandboxing, and deployment practices, this book gives you the architecture, the safeguards, and the working Python to build it yourself.No prior agent-framework experience assumed - only working Python.

More in Computer Programming & Software Development

Videogame Architecture : Building Virtual Spaces - Luke Caspar Pearson

RRP $100.00

$70.99

29%
OFF
Python & AI For Dummies - John C. Shovic

RRP $57.95

$44.75

23%
OFF
Web Engineering : Theory and Practice - Jeremiah Downey
The Essence of Software Engineering - Cersei Page
Introduction to Programming Languages - Gordon Hurley
The Practical Guide : The Practical Guide - Kerem Koseoglu
MacBook Neo For Dummies - Mark L. Chambers

RRP $41.95

$33.75

20%
OFF
The C Programming Language : Prentice Hall Software - Brian Kernighan

RRP $107.04

$75.75

29%
OFF
Coding For Kids For Dummies : For Kids for Dummies - Camille McCue
Coding For Dummies, All New Edition : For Dummies (Computer/Tech) - Paul McFedries
Refactoring 2ed : Improving the Design of Existing Code - Martin Fowler
Computer Systems 3ed : A Programmer's Perspective, Global Edition - David O'Hallaron
Python All-in-One For Dummies : 3rd Edition - John C. Shovic

RRP $74.95

$55.75

26%
OFF
C++ Programming Language (hardcover), The - Bjarne Stroustrup

RRP $117.91

$89.99

24%
OFF
Introducing Python 3e : Modern Computing in Simple Packages - Bill Lubanovic