M02·AI Agents and Workflows

Plan and Execute Agent

Build a financial research agent that plans multi-step analysis upfront, executes each step through a tool registry, and replans when findings change.

Plan and Execute Agent

A ReAct agent thinks one step ahead - call a tool, observe, decide what to do next. That works for simple lookups, but falls apart when a task needs coordinated research across multiple steps. The plan and execute pattern fixes this by creating an upfront plan, executing it step by step, and optionally replanning when things change. Most agentic coding tools (e.g. Claude Code, Cursor, Codex) have built-in planning and execution capabilities, which only illustrates the usefulness of this pattern.

We'll build a financial research agent that takes an analysis request, plans which metrics and news articles to fetch, executes each step through a tool registry, and hands the full scratchpad to a report writer that produces a final report.

Tutorial Goals

  • Understand plan and execute vs ReAct and when each pattern fits
  • Build a LangGraph agent with conditional replanning
  • Use Pydantic to output structured plans from different agents
  • Organize tools by node with a ToolRegistry pattern
  • Run multi-query research with tools and replanning

Plan and Execute Architecture

Members onlyJoin 900+ members
Members only from here
This lesson is part of the full AI engineering roadmap. Here's what unlocking gives you.
What you unlock
  • 01All 6 modules · 40+ hands-on tutorials
  • 02Source code, repositories, and architecture diagrams
  • 03Portfolio artifacts: apps, APIs, eval reports, dashboards, capstones
  • 04Live sessions + every recording
  • 05Discord community access
  • 06Certificate of completion with public verification URL
Price·lifetime
$299$197·Pay once

price goes up August 1

30-day money-back guarantee. One email, full refund.

or
“Best educational investment in my ML/AI journey.”
Ana Clara Medeiros·AI Developer
Instant access after paymentSecure checkout · stripe

Footnotes

  1. Plan-and-Solve Prompting (Wang et al., 2023)

  2. ToolRegistry: A Protocol-Agnostic Tool Management Library for Function-Calling LLMs