Add a planning tool for plan-and-execute vs react
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3547993. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Currently all the agents are following the ReAct loop, where its figuring out what to do as it gets more information per loop (Reason + Act).</p> <p>Plan and execute, is where you instead do a stepped plan and then execute it, by giving smaller tasks to either tools or agents.</p> <p>The simple version of this is to create a planning tool, where you say to the agent that on the first loop you have to plan the steps and when you get information about changed steps, you can update it or write a new plan.</p> <p>The more complex version, is that an actual runner takes care of sending the plan to different agents, but that one should be done in collaboration with ECA most likely. Minikanban does something similar.</p> <p>This issue is just to have the first version working.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <ul> <li>Create one tool that is a simple planning tool. It takes an array of plans in the order they are supposed to be done and uses that as its output.</li> <li>Create another tool that is a complex planning tool, but still tool. This one can take an array of plans, prefix a plan, suffix a plan, set a plan as done, set a plan as won't do. This will be usable when you want the plan to change during planning and should work together with short term memory.</li> </ul>
issue