Planning is an LLM agent’s ability to formulate and revise steps toward a task. It shapes which actions the agent takes, including tool calls, and helps it respond to results as execution unfolds. section 1.2.1
A task-processing loop can use planning to:
- Form an initial plan from the user’s request. section 1.2.1
- Synthesize results from previous actions and judge their contribution to the task. section 1.2.1
- Adapt the plan, course-correct, or finish early when the task is complete. section 1.2.1
A poor initial plan can produce incorrect results, timeouts, or inefficiency. Planning throughout execution gives the agent a chance to adjust when earlier actions do not lead toward the task. section 1.2.1
"I need to find all of the bakeries in New York City that sell croissants and check their prices as well as their ratings. Then, I need to build an analysis with this information to determine the best-value croissants in NYC."
For this task, an agent could plan to find bakeries, gather croissant prices and ratings, and compare the results to identify the best value. section 1.2.1










