Agentic Patterns

hub

Multi-Agent Orchestration Patterns

Agents-as-ToolsStrands (AWS)

Specialized AI agents wrapped as callable functions (tools) that can be invoked by an orchestrator agent. Creates a manager-specialists hierarchy where the orchestrator delegates to domain-specific agents.

Key Components
Orchestrator agentTool-wrapped specialist agents@tool decorator patternIntelligent routing
Medium complexity Medium cost
Hierarchical Agent PatternFoundational

Tree-like structure with supervisor agents managing sub-agents at different levels, forming a multi-tier decision-making hierarchy.

Key Components
Supervisor agentsWorker agentsHierarchical communicationDelegation strategy
High complexity High cost
SwarmStrands (AWS)

Self-organizing agent teams with shared working memory where agents autonomously hand off tasks to specialists. No central controller—agents decide when to transfer control based on expertise needed.

Key Components
Shared working memoryHandoff tool for transfersAgent collaboration historySafety mechanisms (max handoffs, timeouts)
Medium complexity Medium cost
Market PatternFoundational

Agents compete or bid for tasks based on their capabilities and costs, with selection determined by market-like mechanisms.

Key Components
Task marketplaceAgent biddingSelection mechanismCapability matching
High complexity Medium cost
Orchestrator-AgentsFoundational

Central orchestrator coordinates multiple specialized agents through various communication patterns. The orchestrator receives requests, routes to appropriate specialists, and aggregates results.

Key Components
Central orchestratorSpecialized agentsCommunication protocolTask routing
Medium complexity Medium cost
Blackboard PatternFoundational

Agents collaborate through a shared knowledge space (blackboard) where they read and write information to collectively solve problems. Any agent can contribute when it has relevant knowledge.

Key Components
Shared blackboard/workspaceIndependent agentsKnowledge contributionCollaborative solving
Medium complexity Medium cost
Sequential PipelineGoogle ADK

Agents execute in a fixed, predetermined order. Each agent's output is stored in shared state and available to subsequent agents. Deterministic—not LLM-powered at orchestration level.

Key Components
Ordered agent listShared InvocationContextOutput keys for stateDeterministic execution
Low complexity Low cost
Parallel Fan-OutGoogle ADK

Multiple agents execute concurrently on independent tasks. No automatic state sharing during execution—results aggregated after all complete.

Key Components
Concurrent executionIndependent branchesResult aggregationOptional shared context post-execution
Low complexity Medium cost
Loop/IterativeGoogle ADK

Agents execute repeatedly in a cycle until a termination condition is met—either max_iterations reached or an agent signals completion via exit_loop().

Key Components
Iteration cycleTermination conditionsmax_iterations capexit_loop() signal
Medium complexity Medium-High cost
Workflow/DAGStrands (AWS)

Pre-defined task graph (DAG) executed as a single non-conversational tool. Handles dependency resolution, parallel execution where safe, and persistent state management.

Key Components
Task graph definitionAutomatic dependency resolutionParallel where possiblePersistent state with pause/resume
Medium complexity Medium cost
forum

Communication & Quality Patterns

Generator-CriticGoogle ADK

Two-agent quality pattern where one agent generates output and another reviews/critiques it. Often combined with Loop pattern for iterative improvement until quality threshold met.

Key Components
Generator agentCritic/reviewer agentQuality criteriaFeedback loop
Medium complexity Medium cost
Agent-to-Agent (A2A)Strands (AWS)

Open protocol standard for AI agents to discover, communicate, and collaborate across different platforms and providers. Agents expose capabilities via standardized 'agent cards'.

Key Components
Agent cards (capability metadata)Standardized message formatDiscovery mechanismsCross-platform compatibility
High complexity Low cost
Transparency EnforcementSafeguarding

A dedicated agent sits between worker and orchestrator, comparing what the task asked for, what operations were executed, and what the output claims. If there is a gap, it does not reject or retry. It sends the output back to the worker with a specific amendment request, such as acknowledging scope limitations.

Key Components
Task-output comparisonScope gap detectionAmendment requests (not retries)Worker self-correction
Medium complexity Low cost
Circuit BreakerSafeguarding

Automatic trip-wires that halt or dampen agent execution when anomalous patterns are detected. Enforces cooldown periods after negative signals, rate-limits actions per target, and breaks runaway loops where each action creates new observations that trigger further actions.

Key Components
Escalation pattern detectionCooldown periods after rejectionAction rate limiting per targetLoop-breaking with forced pause
Medium complexity Low cost
psychology

Reasoning & Execution Patterns

ReAct (Reasoning + Acting)Foundational

Agent alternates between reasoning about what to do and taking actions, creating a thought-action-observation loop.

Key Components
Thought generationAction selectionObservation processingIterative loop
Medium complexity Medium cost
Chain-of-Thought (CoT)Foundational

Prompts the model to show step-by-step reasoning before arriving at a final answer.

Key Components
Step-by-step reasoningIntermediate thoughtsFinal answer
Low complexity Low cost
Tree of Thoughts (ToT)Foundational

Explores multiple reasoning paths simultaneously, backtracking and pruning like tree search.

Key Components
Thought generationState evaluationBacktrackingBranch pruning
High complexity High cost
Reflection/Self-RefinementFoundational

Agent generates initial response, then critiques and refines it iteratively.

Key Components
Initial generationSelf-critiqueRefinementIteration
Medium complexity Medium cost
Plan-and-ExecuteFoundational

Agent first creates a high-level plan, then executes each step sequentially.

Key Components
Planning phaseTask decompositionSequential executionPlan adaptation
Medium complexity Medium cost
Tool Use / Function CallingFoundational

Agent can invoke external tools/APIs/functions to augment capabilities.

Key Components
Tool/function definitionsParameter extractionExecutionResult integration
Low complexity Low cost
Multi-Agent CollaborationFoundational

Multiple specialized agents work together, each with specific roles and expertise.

Key Components
Specialized agentsCommunication protocolCoordinator/orchestratorShared context
High complexity High cost
Memory-Augmented AgentsFoundational

Agent maintains short-term and long-term memory to track context across interactions.

Key Components
Short-term memory (working)Long-term memory (vector DB)Memory retrievalMemory consolidation
Medium complexity Medium cost
compare

When to Use Each Pattern

PatternBest ForComplexityCost
Chain-of-ThoughtMath, logic, step-by-step reasoningLowLow
ReActResearch, multi-step tool useMediumMedium
Tree of ThoughtsComplex puzzles, game playingHighHigh
ReflectionContent generation, code writingMediumMedium
Tool UseCalculations, data retrieval, API callsLowLow
Memory-AugmentedPersonal assistants, long conversationsMediumMedium
Agents-as-ToolsManager-specialists delegation, domain routingMediumMedium
SwarmAutonomous collaboration, emergent problem solvingMediumMedium
Graph ExecutionConditional branching, complex routingMediumMedium
Orchestrator-AgentsCentralized coordination, workflow automationMediumMedium
HierarchicalLarge-scale projects, divide-and-conquerHighHigh
BlackboardCollaborative research, brainstormingMediumMedium
Sequential PipelineDependent steps, processing chainsLowLow
Parallel Fan-OutIndependent tasks, multi-source researchLowMedium
Loop/IterativeRefinement cycles, quality improvementMediumMedium-High
Workflow/DAGComplex pipelines, business processesMediumMedium
Generator-CriticContent QA, code review automationMediumMedium
Agent-to-Agent (A2A)Cross-platform integration, agent marketplacesHighLow
Market PatternResource optimization, dynamic allocationHighMedium
Transparency EnforcementScope honesty, output amendmentMediumLow
Circuit BreakerEscalation prevention, loop breakingMediumLow
Stream SafeguardsReasoning interception, block-level safetyHighMedium
Judge & EscalationTiered quality gates, output validationMediumMedium