Program 03 · Module 05 of 10
Module 05: Planning and Agent Execution Patterns
Choose how an agent decides and sequences its work. You study reason-and-act loops, plan-and-execute workflows, parallel and conditional tool use, approval and escalation, and checkpoints for long-running tasks.
- Suggested study time
- 7-9 hours
- Prerequisites
- Modules 1 to 4.
Sign in to track your progress. Every lesson stays free to read without an account.
Learning outcomes
By the end of this module you will be able to:
- Compare reason-and-act and plan-and-execute patterns and choose between them.
- Sequence tool calls in parallel or conditionally when it is safe to do so.
- Design human-in-the-loop approval and escalation points.
- Checkpoint long-running tasks so they can resume after a failure.
Lessons
- 5.1
ReAct-Style Reasoning and Acting Patterns
Learn the loop where an agent decides its next step, uses a tool, reads the result and repeats, and add the code guardrails that keep that loop safe.
40 min - 5.2
Plan-and-Execute Workflows
Let the model write the whole plan first as data, check it with code, and only then run the steps, with a clear rule for what happens when a step fails.
40 min - 5.3
Sequential, Parallel and Conditional Tool Execution
Decide which tool calls must wait for each other, which can run together, and which should only run when a condition is true, using the plan's after field.
40 min - 5.4
Human-in-the-Loop Approval and Escalation
Decide which agent steps need a person's yes before they run, show approvers what they need to decide quickly, and hand hard cases to the right person.
40 min - 5.5
Managing Long-Running Tasks and Checkpoints
Save an agent's progress after every step so a long task can resume after a crash, and set step and time budgets so it can never run forever.
40 min - 5.6
Practical Lab: Build a Multi-Step Research Agent
Build a research agent that writes its plan as data, has the plan checked in code, reads documents in parallel, saves checkpoints so it can resume, and asks a person before saving its report.
1 h 30 min
About 4 h 50 min of lessons in total.
Practical assignment
Practical Lab: Build a Multi-Step Research Agent
Build a research agent over a fictional document set. It must plan, gather evidence with read-only tools, checkpoint its progress and pause for approval before any write.
Deliverables
- Source code and a trace of at least three runs.
- A plan format and its validation code.
- A checkpoint and resume demonstration.
Validation checklist
Use this to check your assignment before you move on.
Knowledge check
Show the answer and explanation
Answer: A. Independent read-only calls can overlap. Always-parallel is tempting for speed, but writes that depend on each other can corrupt state.
Show the answer and explanation
Answer: B. A plan is data your code can check. Catching a bad step before it runs is cheaper than undoing it.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.