The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
The Definitive Guide
Build, orchestrate, secure, and ship AI agents in C# and Python with Microsoft Agent Framework. A hands-on guide from first agent to production, updated as the framework evolves.
Interested in this book? Show your support by saying what you'd like to pay for it!
About the Book
Software that plans, calls tools, remembers, and acts is moving from demo to production, and the hard part is no longer the model. It is orchestration, state, security, and operations.
This guide takes you through Microsoft Agent Framework from first agent to production, in both C# and Python. Every code example is grounded in the framework's official open-source samples, and the book is written against Python 1.20.0 and .NET 1.23.0 (October 2026).
What you will learn: agents, tools, skills, sessions, and structured output; middleware for logging, safety, cost control, and approvals; graph-based workflows with human approval, checkpoints, and time-travel debugging; multi-agent patterns (handoff, sequential, group chat, concurrent, Magentic); vector search, retrieval, and memory that respects permissions; hosting long-running agents that survive a restart; security hardening, evaluation, red teaming, and compliance; observability; migration guides for Semantic Kernel, AutoGen, and LangChain; and a field guide to applying agents in construction, maritime, logistics, healthcare, and more (clearly labelled as design proposals).
Good to know: code samples were checked against the framework's source but not executed, so run them in a sandbox first. The framework changes quickly, and Appendix D lists exactly what changed in the October 2026 releases. This is an independent book, not affiliated with or endorsed by Microsoft. Buy once and get every update free.
About the Author
Junaid Malik is the founder of Simam Digital, a spatial AI engineering and immersive solutions company in Wakefield, England, and leads Simam AI Lab, where every scene in his Gaussian splatting book was captured, trained, measured and published. He has spent more than eleven years shipping real-time 3D, XR and applied AI: Unity prototypes for Sky, apps for Vodafone, VR and AR simulation at Costain for Highways England, Network Rail and HS2 work, and educational VR at Engage XR, including Apollo 11 and Shuttle Commander. With Focal Point VR he led development of the live VR streaming app for the A2RL autonomous racing league, which won Best Innovation Project at the 2024 Broadcast Tech Innovation Awards. He writes practical books for builders and shares what he learns on the Tech Alchemy YouTube channel and newsletter.
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.