Skip to content

zeljkoavramovic/agentic-design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Agentic Design Patterns

This repository contains an interactive, single-file tutorial on 22 essential agentic design patterns for building intelligent AI systems.

Overview

The included index.html file is a self-contained web page that provides a comprehensive guide to various patterns used in modern AI development. It's designed to make complex architectural concepts accessible through simple visual representations, detailed explanations, and real-world examples.

Online Use

Open https://zeljkoavramovic.github.io/agentic-design-patterns/ in your browser.

Offline Use

Simply download the index.html file and open it in any modern web browser. No internet connection is required after the initial download.

Pattern Relationships

The following diagram illustrates how different agentic patterns often connect and rely on each other. This provides a high-level view of the ecosystem.

graph LR
    subgraph "Core Patterns"
        P1("Prompt Chaining")
        P2("Routing")
        P3("Parallelization")
        P4("Reflection")
        P5("Tool Use")
    end
    subgraph "Advanced Patterns"
        P6("Planning")
        P7("Multi-Agent Collaboration")
        P8("Memory Management")
        P9("Learning and Adaptation")
        P10("MCP")
    end
    subgraph "System Patterns"
        P11("Goal Setting & Monitoring")
        P12("Exception Handling & Recovery")
        P13("Human-in-the-Loop")
        P14("Knowledge Retrieval RAG")
        P15("Inter-Agent Communication")
        P16("Awareness")
    end
    subgraph "Optimization & Strategic"
        P17("Resource-Aware Optimization")
        P18("Reasoning Techniques")
        P19("Guardrails & Safety")
        P20("Evaluation & Monitoring")
        P21("Prioritization")
        P22("Exploration & Discovery")
    end

    P7 -- "requires" --> P15
    P7 -. "uses" .-> P6
    P7 -. "uses" .-> P8
    P6 -- "can be composed of" --> P1
    P6 -- "often requires" --> P5
    P14 -- "is a form of" --> P5
    P2 -- "is used by" --> P17
    P4 -- "is a form of" --> P20
    P9 -- "is enabled by" --> P13
    P13 -- "is triggered by" --> P19
    P13 -- "is triggered by" --> P12
    P18 -- "can be improved by" --> P4
    P22 -- "is a form of" --> P6
    P1 -- "often needs" --> P12
    P6 -- "detects" --> P16
    P17 -- "detects" --> P16
    P7 -- "detects" --> P16
    P16 -- "provides facts for" --> P6
    P16 -- "provides facts for" --> P17
Loading

Patterns Included

The tutorial covers the following 22 patterns, grouped into categories:

Core Patterns

  • Prompt Chaining
  • Routing
  • Parallelization
  • Reflection
  • Tool Use

Advanced Patterns

  • Planning
  • Multi-Agent Collaboration
  • Memory Management
  • Learning and Adaptation
  • Model Context Protocol (MCP)

System Patterns

  • Goal Setting & Monitoring
  • Exception Handling & Recovery
  • Human-in-the-Loop
  • Knowledge Retrieval (RAG)
  • Inter-Agent Communication
  • Awareness

Optimization Patterns

  • Resource-Aware Optimization
  • Reasoning Techniques
  • Guardrails & Safety
  • Evaluation & Monitoring

Strategic Patterns

  • Prioritization
  • Exploration & Discovery

License

MIT License - Use these patterns freely in your projects!

Support the Project

If this project has helped you, support is most welcome:

  • Star the repository to show your appreciation.
  • 💬 Spread the word about this repository.

Credits

The patterns, diagrams, and explanations are sourced from the excellent work done by Prompt Advisers. For more information and to view the original source files, please visit their GitHub repository: https://github.com/promptadvisers/agentic-design-patterns-docs

For those who want to dig much deeper, their work is based on a book from Antonio Gulli: https://www.amazon.com/Agentic-Design-Patterns-Hands-Intelligent/dp/3032014018

Awareness Pattern origin (thanks to user Thaddy from Lazarus forum for a pointer): https://www.researchgate.net/publication/238675575_Brahms_A_multi-agent_modelling_environment_for_simulating_work_processes_and_practices