35 PARTS · 5 RUNNABLE EXAMPLES · v1.0

AI AGENTS
MASTERCLASS

The visual masterclass your coding agents deserve. Anatomy, ReAct & ReWOO, 15+ frameworks, MCP/A2A protocols, and five runnable examples — every concept animated.

$ python examples/minimal_react_agent.py
The stack

15+ frameworks, one mental model

Every framework is a different harness around the same loop: reason, act, observe, repeat. Learn the model once and read them all.

Frameworks map
The framework landscape — mapped by autonomy and orchestration style.
Anatomy

Six capabilities of a real agent

An assistant answers. An agent reasons, acts, and self-corrects toward a goal. These are the six muscles that make the difference.

🧩

Reason

Break a goal into steps and decide what to do next from the current state.

⚙️

Act

Call tools, APIs, and code — turning thoughts into real-world side effects.

👁️

Observe

Read tool results and environment feedback to ground the next decision.

🗺️

Plan

Sequence multi-step work, with ReWOO-style upfront plans when it helps.

🤝

Collaborate

Hand off to other agents over A2A — single brain or a coordinated fleet.

♻️

Self-refine

Critique its own output, retry, and pass eval gates before finishing.

Reasoning paradigms

ReAct vs ReWOO — animated

The two dominant loops. ReAct interleaves thought and action; ReWOO plans everything first, then executes. Watch both run.

ReAct loop
ReAct — reason, act, observe, repeat.
ReWOO flow
ReWOO — plan upfront, then execute the plan.
See it move

The whole masterclass, in motion

Eighteen diagram GIFs and seven terminal walkthroughs. No static slides — every idea animates.

Mega overview
mega-agents-everything — the full picture in one reel.
Anatomy
Single vs multi
Protocols
Memory tiers
Five runnable examples

Start with zero API keys

The minimal ReAct agent runs out of the box. Then graduate to LangGraph, CrewAI, the OpenAI SDK, and typed Pydantic AI agents.

examples/minimal_react_agent.py
# A tiny ReAct loop — reason, act, observe, repeat
def run(goal):
    state = {"goal": goal, "scratch": []}
    while not done(state):
        thought = reason(state)        # LLM picks next action
        result  = act(thought.tool)    # call a tool
        state["scratch"].append(observe(result))
    return finalize(state)

if __name__ == "__main__":
    print(run("What's 17% of 2,480?"))
Install

Running in three commands

01

Clone

Grab the ecosystem repo with every guide and asset.

git clone https://github.com/Ayush7614/agentic-ai-ecosystem.git
02

Set up

Create a venv inside the masterclass guide folder.

cd guides/ai-agents-masterclass && python -m venv .venv
03

Run

Launch the minimal ReAct agent — no API key needed.

python examples/minimal_react_agent.py

Build agents that actually move.

Thirty-five parts, five frameworks, every concept animated. Your agents deserve a real mental model.

Copied to clipboard