What if you ask the AI to "Send a summary of my last 5 emails to my boss"? This requires multiple steps. A Planner is an AI model that looks at your prompt, looks at your available plugins, and writes its own "To-Do" list.
This is the most modern planner in SK. It acts like a loop:
Planners are powerful but dangerous. They can get stuck in infinite loops or hallucinate function calls. As an architect, you must set **MaxIterations** and provide a very limited, secure set of tools to the planner.
Q: "What is the difference between a 'Static' and 'Dynamic' Planner?"
Architect Answer: "A **Static Planner** (like the old Sequential Planner) creates the whole plan upfront and then executes it. It's fast but brittle—if one step fails, the whole plan is ruined. A **Dynamic Planner** (like Stepwise) decides the next step ONLY after seeing the result of the previous one. It is much smarter and more resilient to errors, but it uses more tokens and takes longer to finish."