Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agentic Design Patterns

Agentic Design Patterns are architectural and behavioral patterns for building autonomous AI agents and agentic systems.

These patterns provide proven solutions for designing agents that can:

  • Perceive their environment
  • Make decisions
  • Take actions
  • Iterate toward achieving defined goals

They encompass various approaches including:

  • Reasoning frameworks
  • Planning strategies
  • Tool integration
  • Memory management
  • Multi-agent orchestration

This enables developers to create intelligent systems that operate with minimal human intervention while maintaining control and predictability.

Getting Started

Prerequisites

  • Python 3.10 or higher is required.
  • Provider API keys:
    • Anthropic
    • Google
    • OpenAI

Library dependencies are listed in the requirements.txt file.

Setup environment

  1. Create a virtual environment:

    python3 -m venv .venv
  2. Activate the virtual environment:

    source .venv/bin/activate
  3. Install the required dependencies:

    pip install -r requirements.txt

Configuration API Keys

Provider API Keys are required to run the examples. You can put them in your shell configuration file (e.g. ~/.zshrc or ~/.bashrc):

export ANTHROPIC_API_KEY="your-anthropic-api-key"
export GOOGLE_API_KEY="your-google-api-key"
export OPENAI_API_KEY="your-openai-api-key"

Canonical Patterns

Canonical Agentic Design Patterns describe the control logic, orchestration, and workflow. The communication structure is a direct consequence of that architecture.

  • Chaining Pattern
  • Routing Pattern
  • Parallelization Pattern
  • Reflection Pattern
  • Tool Use Pattern

About

Agent-based design patterns drive autonomous and intelligent systems capable of making precise decisions and coordinating tasks with maximum efficiency.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages