📖 🔗 👉 Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems
By Antonio Gulli
⬇️ 💾 👉 Download the EPUB file
This book explores the fundamental design patterns needed to build intelligent AI agents. From prompt chaining and tool use to multi-agent collaboration and safety patterns, it provides practical, hands-on guidance for developers building the next generation of AI applications.
- 21 Chapters covering core agentic design patterns
- 6 Appendices with advanced techniques and frameworks
- 400+ pages of comprehensive content
- Hands-on code examples in Python using LangChain, CrewAI, and Google ADK
- Real-world applications and use cases
├── agentic-design-patterns.epub # Final EPUB file
├── agentic-design-patterns.md # Main book content (Markdown)
├── markdown/ # Individual chapter files downloaded from Google Docs
│ ├── chapter_*.md # Chapter files
│ ├── appendix_*.md # Appendix files
│ └── table_of_contents_epub.md # EPUB table of contents
├── scripts/ # Build and utility scripts
│ ├── create_epub_with_toc.py # Main EPUB builder
│ └── ... # Other utility scripts
├── images/ # Book images and diagrams
│ ├── cover.png # Book cover
│ └── *.png # Chapter illustrations
├── styles/ # EPUB styling
│ └── epub-styles.css # CSS for EPUB formatting
├── backups/ # Backup files
├── epub/ # EPUB files
└── docs/ # Documentation
- Python 3.7+
- Pandoc for EPUB conversion
- Required Python packages (see individual scripts)
# Build EPUB with cover image, table of contents, and navigation
python3 scripts/create_epub_with_toc.pyThis creates a complete EPUB with:
- ✅ Cover image on first page
- ✅ Embedded table of contents
- ✅ Internal chapter navigation
- ✅ EPUB metadata cover
- ✅ Custom CSS styling
- ✅ Proper EPUB3 structure
The EPUB will be created at:
epub/agentic-design-patterns-complete.epub
- Prompt Chaining - Sequential LLM interactions
- Routing - Dynamic task delegation
- Parallelization - Concurrent processing
- Reflection - Self-correction mechanisms
- Tool Use - External API integration
- Planning - Multi-step strategy formulation
- Multi-Agent Collaboration - Distributed intelligence
- Memory Management - State persistence
- Learning and Adaptation - Continuous improvement
- Model Context Protocol - Standardized communication
- Goal Setting and Monitoring - Objective tracking
- Exception Handling - Error recovery
- Human-in-the-Loop - Interactive workflows
- Knowledge Retrieval (RAG) - Information augmentation
- Inter-Agent Communication - Agent-to-agent protocols
- Resource-Aware Optimization - Efficient resource usage
- Reasoning Techniques - Advanced problem solving
- Guardrails/Safety - Safe AI operations
- Evaluation and Monitoring - Performance assessment
- Prioritization - Task management
- Exploration and Discovery - Adaptive learning
create_epub_with_toc.py- Main EPUB builder with cover and navigationfix_headings.py- Heading level normalizationcreate_epub_with_images.py- EPUB with embedded imagesgdocs_to_markdown.py- Google Docs conversion- Various validation and testing scripts
- All chapter content uses consistent heading hierarchy
- Code examples include proper attribution and licenses
- Images are optimized for EPUB compatibility
- Cross-references use proper markdown linking
- Clone this repository
- Install Pandoc:
brew install pandoc(macOS) or follow installation guide - Build EPUB:
python3 scripts/create_epub_with_toc.py - Open EPUB: Double-click the generated file or use your preferred e-reader
The generated EPUB works with:
- macOS Books app
- Moon+ Reader app
- ElevenReader app for audio books
- Kindle (via Calibre conversion)
- Adobe Digital Editions
- Calibre e-book management
- Most modern e-readers
This book represents cutting-edge knowledge in agentic AI systems. While the main content is authored by Antonio Gulli, the build system and scripts welcome improvements.
All rights belong to Antonio Gulli.