Skip to content

mahtabsyed/21-Agentic-Patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building "21 Agentic Patterns" Together, Week by Week!

Acknowledgements - @Antonio Gulli and @Google https://docs.google.com/document/d/1rsaK53T3Lg5KoGwvf8ukOUvbELRtH-V0LnOIFDxBryE/edit?tab=t.0#heading=h.pxcur8v2qagu

My view - Agentic Patters - Parallels to Traditional Programming **

  • 1 - Prompt Chaining - Like a sequential logic in programming
  • 2 - Routing - Like conditional logic in programming
  • 3 - Parallelization - Like multithreaded parallel tasks in programming
  • 4 - Reflection - Self-improvement using meta-cognition - We don't have such constructs in traditional programming. This is now possible with knowledge embedded in LLMs.
  • 5 – Tool Use – Like Function calling in traditional programming
  • 6 - Planning - Analogy does not exist in traditional programming
  • 7 - Multi-Agent Collaboration - Analogy does not exist in traditional programming
  • 8 - Memory Management - Like, RAM, Hard disk, Files, Databases in traditional programming
  • 9 - Learning and Adaptation - Analogy does not exist in traditional programming
  • 10 - Model Context Protocol - An open standard liek RestAPI
  • 11 - Goal Setting and Monitoring - Analogy does not exist in traditional programming
  • 12 - Exception Handling and Recovery - Like Exception Handling in traditional programming
  • 13 - Human-in-the-Loop - There is more of Human-in-the-loop (manual checks) in traditional programming
  • 14 - Knowledge Retrieval (RAG) - Like fetching information from Databases, but thats fixed or wild card search, instead of the Semantic search by LLMs
  • 15 - Inter-Agent Communication (A2A) - Like inter-process communication in traditional programming (TCP/UDP, Pipes, Message Queues, Clipboard)
  • 16 - Resource-Aware Optimization - Achieved via settings with rules in traditional programming

Introduction:

• What are Agentic Systems? • Why Patterns Matter in Agent Development • Overview of the Book and How to Use It • Introduction to the Frameworks Used (Google Agent Developer Kit, Crew AI, LangChain/LangGraph)

Part 1: Foundational Patterns

Chapter 1: Prompt Chaining

• Prompt Chaining Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 2: Routing

• Routing Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 3: Parallelization

• Parallelization Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 4: Reflection

• Reflection Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 5: Tool Use (Function Calling)

• Tool Use Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 6: Planning

• Planning Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 7: Multi-Agent Collaboration

• Multi-Agent Collaboration Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Part 2: State, Memory, and Learning Patterns

Chapter 8: Memory Management (Short-term and Long-term)

• Memory Management Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 9: Learning and Adaptation

• Learning and Adaptation Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 10: State Management

• State Management Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 11: Goal Setting and Monitoring

• Goal Setting and Monitoring Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Part 3: Robustness and Interaction Patterns

Chapter 12: Exception Handling and Recovery

• Exception Handling and Recovery Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 13: Human-in-the-Loop

• Human-in-the-Loop Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 14: Knowledge Retrieval (RAG)

• Knowledge Retrieval (RAG) Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Part 4: Advanced Reasoning and Optimization Patterns

Chapter 15: Evaluation and Monitoring

• Evaluation and Monitoring Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 16: Personalization

• Personalization Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 17: Reasoning (e.g., Chain-of-Thought)

• Reasoning Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 18: Self-Correction

• Self-Correction Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 19: Inter-Agent Communication

• Inter-Agent Communication Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 20: Prioritization

• Prioritization Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

Chapter 21: Simulation and Testing

• Simulation and Testing Pattern Overview • Practical Applications & Use Cases • Hands-On Code Example • Key Takeaways • References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages