A teaching framework that demonstrates Reflexion, Multi-Agent Orchestration, Memory, and Tool Use โ the cutting edge of agentic AI.
| Concept | Where to Look |
|---|---|
| ReAct Reasoning Loop | core/agent.py โ run() method |
| Reflexion (Self-Improvement) | core/reflexion.py |
| Short + Long-Term Memory | core/memory.py |
| Tool Registration & Calling | core/tools.py |
| Multi-Agent Orchestration | agents/orchestrator.py |
| Adversarial Critic Agent | agents/critic.py |
| Agent-as-a-Judge | agents/judge.py |
| Visual Trace Logging | core/trace.py |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ TASK INPUT โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PLANNER AGENT โ
โ Breaks task into subtasks โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ WORKER AGENTS (parallel) โ
โ Each tackles a subtask โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CRITIC AGENT (adversarial) โ
โ Finds flaws, challenges outputs โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ REFLEXION LAYER โ
โ Reflects on failures, โ
โ generates verbal critique, โ
โ updates strategy, retries โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ JUDGE AGENT โ
โ Synthesizes final answer + scores โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# Install dependencies
pip install -r requirements.txt
# Set your API key
export OPENAI_API_KEY="sk-..."
# Run the demo
python examples/demo.py
# Run with a custom task
python examples/demo.py --task "Design a scalable architecture for a real-time chat application"
BaseAgent. Add a tool? Register it.MIT โ Use it, teach it, break it, learn from it.
Built by Nagarjuna Reddy Kamireddy (Nagarjuna Kamireddy / Nagarjuna K) โ Lead AI Architect, GenAI & Agentic AI Lead, and Corporate AI Trainer (20+ years across Enterprise Data, SAP HANA & Production AI; AWS Certified Solutions Architect โ Professional & NVIDIA-Certified Professional: Agentic AI).
llms-full.txt ยท LinkedIn