{"product_id":"metaprogramming-for-ai-jason-gran-9798271218194","title":"Metaprogramming for AI: Building Dynamic, Agentic Systems in Python","description":"\u003cb\u003e\u003cb\u003eStop Fighting Static Code. Start Building Truly Dynamic AI Agents.\u003c\/b\u003e\u003c\/b\u003e\u003cbr\u003eAre you an experienced Python AI engineer hitting a wall? You're building sophisticated agents - systems that reason, plan, and act - but find yourself trapped by the rigid confines of traditional Object-Oriented Programming. Your agent frameworks feel brittle, difficult to extend, and incapable of the true runtime adaptation that intelligent systems demand. You know there has to be a better way.\u003cbr\u003eThere is. The techniques you need aren't in a new, complex library - they're hidden in plain sight within Python itself. \u003ci\u003e\u003ci\u003eMetaprogramming for AI\u003c\/i\u003e\u003c\/i\u003e unlocks these \"lost arts\" to fundamentally change how you architect intelligent systems.\u003cbr\u003eThis isn't just theory. This is a hands-on, deep dive into the practical application of Python's meta-object protocol specifically for building the next generation of AI: \u003cbr\u003e\u003cb\u003e\u003cb\u003eMaster the \"Why\" and \"How\" \u003c\/b\u003e\u003c\/b\u003e Understand \u003ci\u003e\u003ci\u003ewhy\u003c\/i\u003e\u003c\/i\u003e dynamic approaches are essential for agentic workflows and solidify your grasp of the core Python Object Model (type, __new__, __dict__).\u003cbr\u003e\u003cb\u003e\u003cb\u003eWield Python's MOP: \u003c\/b\u003e\u003c\/b\u003e Learn to intercept class creation with \u003cb\u003e\u003cb\u003emetaclasses\u003c\/b\u003e\u003c\/b\u003e to automate tool registration and enforce architectural rules. Harness \u003cb\u003e\u003cb\u003edescriptors\u003c\/b\u003e\u003c\/b\u003e to create self-validating attributes and manage stateful connections (like vector databases) efficiently.\u003cbr\u003e\u003cb\u003e\u003cb\u003eBuild Evolvable Systems: \u003c\/b\u003e\u003c\/b\u003e Go beyond static blueprints. Engineer agents capable of \u003cb\u003e\u003cb\u003eruntime modification\u003c\/b\u003e\u003c\/b\u003e - adding new, LLM-generated tools and skills \u003ci\u003e\u003ci\u003ewhile running\u003c\/i\u003e\u003c\/i\u003e.\u003cbr\u003e\u003cb\u003e\u003cb\u003eCompose Complex Behaviors: \u003c\/b\u003e\u003c\/b\u003e Leverage \u003cb\u003e\u003cb\u003emixins\u003c\/b\u003e\u003c\/b\u003e and understand the \u003cb\u003e\u003cb\u003eMRO\u003c\/b\u003e\u003c\/b\u003e to build sophisticated agents from reusable, modular components (like logging, state management, and memory).\u003cbr\u003e\u003cb\u003e\u003cb\u003eEngineer Real-World Solutions: \u003c\/b\u003e\u003c\/b\u003e Apply these techniques through two capstone projects: a \u003cb\u003e\u003cb\u003eSelf-Modifying Agent\u003c\/b\u003e\u003c\/b\u003e that learns new tools on the fly and a \u003cb\u003e\u003cb\u003eDynamic RAG Pipeline\u003c\/b\u003e\u003c\/b\u003e with swappable, auto-registered components.\u003cbr\u003e\u003cb\u003e\u003cb\u003eAdopt a Dynamic Mindset: \u003c\/b\u003e\u003c\/b\u003e Move beyond simple scripting and prompt engineering to architect truly reflective, adaptable, and scalable AI platforms.\u003cbr\u003e\u003cb\u003e\u003cb\u003eThis book is for: \u003c\/b\u003e\u003c\/b\u003e\u003cbr\u003eSenior Python\/AI developers frustrated with static framework limitations.\u003cbr\u003eEngineers building complex agentic workflows, RAG pipelines, and LLM orchestration systems.\u003cbr\u003eArchitects designing maintainable and extensible AI platforms.\u003cbr\u003eAnyone who wants to move beyond surface-level AI and master the deep system design required for truly intelligent applications.\u003cbr\u003e\u003cb\u003e\u003cb\u003eThis book is NOT for Python beginners.\u003c\/b\u003e\u003c\/b\u003e It assumes professional experience and a desire to go deep.\u003cbr\u003eIf you're ready to stop patching brittle systems and start engineering AI that can truly learn and evolve, this book is your guide.\u003cbr\u003e\u003cb\u003e\u003cb\u003eScroll up and grab your copy today!\u003c\/b\u003e\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAuthor:\u003c\/b\u003e Jason Gran\u003cbr\u003e\u003cb\u003eISBN-13:\u003c\/b\u003e 9798271218194\u003cbr\u003e\u003cb\u003ePublisher:\u003c\/b\u003e Independently Published\u003cbr\u003e\u003cb\u003eLanguage:\u003c\/b\u003e English\u003cbr\u003e\u003cb\u003ePublished:\u003c\/b\u003e 10\/23\/2025\u003cbr\u003e\u003cb\u003ePages:\u003c\/b\u003e 394\u003cbr\u003e\u003cb\u003eFormat:\u003c\/b\u003e Paperback\u003cbr\u003e\u003cb\u003eWeight:\u003c\/b\u003e 1.50lbs\u003cbr\u003e\u003cb\u003eSize:\u003c\/b\u003e 10.00h x 7.00w x 0.81d","brand":"Jason Gran","offers":[{"title":"Paperback","offer_id":49083742421247,"sku":"9798271218194","price":25.0,"currency_code":"USD","in_stock":true}],"url":"https:\/\/www.whiterainbookhouse.com\/products\/metaprogramming-for-ai-jason-gran-9798271218194","provider":"WR Book House","version":"1.0","type":"link"}