Agentic-Design-Patterns README

The project's README from github.com/evoiz/Agentic-Design-Patterns. As one markdown file: README.md.

📚 Agentic Design Patterns - A Hands-On Guide to Building Intelligent Systems

Book Author Charity License

📖 About This Repository

This repository contains the complete materials for "Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems" by Antonio Gulli. It includes all chapters in PDF format and accompanying code notebooks for hands-on learning.

Note: All author royalties are donated to Save the Children 💝

🎯 What You'll Learn

This comprehensive guide covers 21 chapters and 7 appendices on building intelligent AI agent systems, including:

📁 Repository Structure

.
├── 📄 README.md                           # This file
├── 📚 book/
│   └── Agentic_Design_Patterns_Complete.pdf  # Complete book (424 pages)
├── 💻 chapter_notebooks/                          # Chapter 
│   ├── Chapter_01_Prompt_Chaining.ipynb
│   ├── Chapter_02_Routing.ipynb
│   ├── Chapter_03_Parallelization.ipynb
│   ├── ...
│   └── Appendix_G_Coding_Agents.ipynb

📚 Table of Contents

Introduction & Foundations

Part One: Core Patterns (103 pages)

  1. Chapter 1: Prompt Chaining - Sequential task decomposition
  2. Chapter 2: Routing - Dynamic path selection
  3. Chapter 3: Parallelization - Concurrent processing
  4. Chapter 4: Reflection - Self-improvement mechanisms
  5. Chapter 5: Tool Use - External capability integration
  6. Chapter 6: Planning - Strategic task management
  7. Chapter 7: Multi-Agent - Collaborative systems

Part Two: Advanced Patterns (61 pages)

  1. Chapter 8: Memory Management - State persistence
  2. Chapter 9: Learning and Adaptation - Dynamic improvement
  3. Chapter 10: Model Context Protocol (MCP) - Standardized interfaces
  4. Chapter 11: Goal Setting and Monitoring - Objective tracking

Part Three: Production Patterns (34 pages)

  1. Chapter 12: Exception Handling and Recovery - Robust error management
  2. Chapter 13: Human-in-the-Loop - Human-AI collaboration
  3. Chapter 14: Knowledge Retrieval (RAG) - Information access patterns

Part Four: Enterprise Patterns (114 pages)

  1. Chapter 15: Inter-Agent Communication (A2A) - Agent networking
  2. Chapter 16: Resource-Aware Optimization - Efficient resource usage
  3. Chapter 17: Reasoning Techniques - Advanced decision-making
  4. Chapter 18: Guardrails/Safety Patterns - Risk mitigation
  5. Chapter 19: Evaluation and Monitoring - Performance tracking
  6. Chapter 20: Prioritization - Task management
  7. Chapter 21: Exploration and Discovery - Autonomous learning

Appendices (74 pages)

Conclusion & References

🚀 Getting Started

Prerequisites

# Python 3.8 or higher required
python --version

# Install Jupyter for notebooks
pip install jupyter notebook

# Install common dependencies
pip install -r requirements.txt

Installation

  1. Clone the repository
git clone https://github.com/evoiz/Agentic-Design-Patterns.git
cd Agentic-Design-Patterns
  1. Set up virtual environment (recommended)
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies
pip install jupyter notebook
pip install pandas numpy matplotlib openai langchain
  1. Launch Jupyter Notebook
jupyter notebook

💻 Running the Code

Each chapter includes a Jupyter notebook with practical examples:

  1. Navigate to the chapter_notebooks/ directory
  2. Open the desired chapter notebook
  3. Follow the instructions within each notebook
  4. Run cells sequentially for best learning experience

Example: Running Chapter 1

# Navigate to notebooks directory
cd chapter_notebooks

# Launch specific notebook
jupyter notebook Chapter_01_Prompt_Chaining.ipynb

📖 How to Use This Repository

For Self-Study

  1. Read each chapter in the PDF
  2. Open the corresponding notebook
  3. Run the code examples
  4. Experiment with modifications
  5. Complete the exercises

For Teaching

  1. Use chapters as lecture materials
  2. Assign notebooks as lab exercises
  3. Create custom examples based on patterns
  4. Build projects using multiple patterns

For Research

  1. Reference implementation patterns
  2. Benchmark different approaches
  3. Extend patterns for new use cases
  4. Contribute improvements back

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines.

Ways to Contribute

Contribution Process

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📚 Additional Resources

Learning Path

  1. Beginners: Start with Chapters 1-7 (Core Patterns)
  2. Intermediate: Progress through Chapters 8-14 (Advanced & Production)
  3. Advanced: Master Chapters 15-21 (Enterprise Patterns)
  4. Experts: Explore Appendices for cutting-edge techniques

⚖️ License

This repository is for educational purposes. Please respect the author's copyright and intellectual property rights.

🙏 Acknowledgments

📞 Contact & Support

🌟 Star History

If you find this repository useful, please consider giving it a star ⭐

Star History Chart

📊 Repository Stats

GitHub last commit GitHub issues GitHub pull requests GitHub


Building the future of AI, one pattern at a time 🚀

Made with ❤️ for the AI community

Agentic-Design-Patterns (evoiz/Agentic-Design-Patterns)

Searching Database…

这是什么?Antonio Gulli 所著《Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems》一书的完整配套资料——全部 21 章的 PDF,以及配套的 Jupyter 代码笔记本。
只是书的内容,还是我也能运行代码?两者都有:每一章都附有供阅读的 PDF,chapternotebooks/ 目录下还有一个 Jupyter 笔记本,里面有实用的示例,可以逐个单元格运行。
我怎么才能把这些笔记本跑起来?克隆仓库,建一个虚拟环境(推荐),安装依赖并启动 Jupyter Notebook;然后打开 chapternotebooks/ 里某一章的笔记本,按顺序运行各个单元格。
它能用于教学或科研,还是只适合自学?三种都可以:各章可以用作讲课材料,笔记本可以用作实验练习,研究人员也可以参考其中的实现来对比评测各种方法,或把这些模式扩展到新的应用场景。
我可以复制和分发这些资料吗?不能完全随意:书的内容版权归 Antonio Gulli 所有,保留一切权利;代码示例采用 MIT 许可证,允许在注明出处的前提下用于教育用途。
这本书有多长?目录显示:核心模式部分 103 页,高级模式 61 页,生产模式 34 页,企业模式 114 页,另有 74 页的附录。
它会具体上手讲解哪些智能体框架吗?附录 C 是对智能体框架的快速概览,附录 D 用 AgentSpace 构建一个智能体,附录 E 讲命令行上的 AI 智能体,附录 G 讲编码智能体;LangChain、AutoGPT、OpenAI Assistants、Microsoft AutoGen 和 CrewAI 被列为相关框架。
书里的 MCP 是什么?即 Model Context Protocol(模型上下文协议),在第 10 章作为标准化接口模式讲解;书中把它与记忆管理和目标设定一起归入高级模式。
作者能从中赚钱吗?这本书的全部版税都捐给了救助儿童会(Save the Children)。
Creator
evoiz
Size
3.3 MB
Stars
3.9K
Updated
CommitJul 24
Age
1y
Commits · 90 Days