"Plan-and-Execute Agents: Revolutionizing Agent Executors for Complex Planning"

Ante Gojsalić

Hatched by Ante Gojsalić

Apr 13, 2024

3 min read

0

"Plan-and-Execute Agents: Revolutionizing Agent Executors for Complex Planning"

Introduction:
In the world of agent executors, a new type has emerged called "Plan-and-Execute" agents. These agents, inspired by BabyAGI and the recent Plan-and-Solve paper, offer a more advanced approach to complex long-term planning. While they require more calls to the language model, their potential for sophisticated planning makes them a promising addition to the field. This article explores the implementation of Plan-and-Execute agents, their benefits, and future directions for their development.

Action Agents vs Plan-and-Execute Agents:
Before the introduction of Plan-and-Execute agents, the prevailing type of agent executor was known as "Action" agents. These agents followed the framework pioneered by the ReAct paper. The algorithm for Action agents can be summarized as follows:

  1. Receive user input.
  2. Decide which tool (if any) to use and determine the input for that tool.
  3. Call the tool with the specified input and record the observation.
  4. Pass the history of tool, tool input, and observation back to the agent.
  5. Decide the next step based on the previous history.
  6. Repeat until the agent no longer needs to use a tool and respond directly to the user.

Plan-and-Execute Implementation:
The emergence of Plan-and-Execute agents brought a new approach to agent frameworks. These agents aim to separate higher-level planning from shorter-term execution. The pseudo-code for Plan-and-Execute agents can be summarized as follows:

  1. Plan the steps to take.
  2. For each step in the plan, determine the appropriate tools or actions to accomplish that step.
  3. Execute the planned steps iteratively.

Future Directions for Plan-and-Execute Agents:
While Plan-and-Execute agents show great potential, there are several areas that require further development and exploration:

  1. Better support for long sequences of steps: As planning steps become longer, storing them in a vector store and retrieving intermediate steps will be more efficient and practical.

  2. Revisiting plans: Currently, there is only one planning step at the start, and it is never revisited. To improve adaptability, there should be a mechanism for revisiting and adjusting the plan, either at every step or as needed.

  3. Evaluation: To ensure the effectiveness of agent frameworks, more rigorous methods of evaluating their performance and benchmarking their capabilities are necessary.

  4. Selection of execution chain: Introducing multiple execution chains would allow planners to optimize for specific tasks or domains. For example, having an execution chain tailored for web research and another for analysis would enhance the agent's versatility.

Conclusion:
Plan-and-Execute agents offer a revolutionary approach to agent executors by separating planning and execution. While there are still areas for improvement and further exploration, such as better support for long sequences, revisiting plans, evaluation, and multiple execution chains, the potential for advanced long-term planning is undeniable. As the field of agent executors continues to evolve, Plan-and-Execute agents will likely take center stage, paving the way for more intelligent and adaptable systems.

Sources

← Back to Library

Hatch New Ideas with Glasp AI 🐣

Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)

Start Hatching 🐣