Agent Patterns
Patterns that didnβt break production (with code and trade-offs).
ReAct Agent
β β βMaster the ReAct agent pattern in React: reason-act loops, tool use, and guardrails that prevent common failures in production AI workflows.
Learn the patternImplementationsTask Decomposition Agent
β β βDecompose complex goals into manageable subtasks so agents can plan, execute, and verify step by step with better reliability.
Learn the patternImplementationsRouting Agent
β β βRoute each request to the best agent or tool using explicit criteria, improving accuracy, speed, and cost efficiency in multi-agent systems.
Learn the patternImplementationsOrchestrator Agent
β β βLearn orchestration patterns to delegate subtasks, run executors in parallel, track status, and merge outputs into one reliable final result.
Learn the patternImplementationsSupervisor Agent
β β βUse a supervisor agent to validate proposed actions, enforce policies, and block unsafe steps before they impact users or systems.
Learn the patternImplementationsMulti-Agent Collaboration
β β βUse collaborating agents to split roles, exchange intermediate results, and cross-check outputs to solve complex tasks with higher quality.
Learn the patternImplementationsRAG Agent
β β βBuild a RAG agent that finds relevant documents, cites sources, and reduces hallucinations in answers.
Learn the patternImplementationsMemory-Augmented Agent
β β βBuild agents that remember user facts and prior outcomes across sessions to deliver consistent, personalized responses without losing control.
Learn the patternImplementationsReflection Agent
β β βAdd one short review pass to catch obvious mistakes before answering, without endless rewrites.
Learn the patternImplementationsSelf-Critique Agent
β ββRun a safe self-critique loop: one schema-based review, one constrained revision, and a change log for stable quality.
Learn the patternImplementationsFallback Recovery Agent
β ββBuild an agent that recovers from tool and model failures with fallback strategies, retries, and controlled degradation.
Learn the patternImplementationsGuarded Policy Agent
β ββImplement a policy-gate that allows, denies, rewrites, or escalates risky agent actions for safe and auditable execution.
Learn the patternImplementationsCode Execution Agent
β ββHow an agent runs code in a sandbox to compute reliably, validate hypotheses, and automate tasks with production guardrails.
Learn the patternImplementationsData Analysis Agent
β ββHow an agent ingests, cleans, analyzes, and validates data to produce reproducible metrics and conclusions for decisions.
Learn the patternImplementationsResearch Agent
β ββUse a bounded research pipeline: search, read, extract facts, and synthesize with citations without tool spam or infinite loops.
Learn the patternImplementations