Decouple agent action planning/generation and agent action grounding.
Agent action planning/generation updates the plan based on the goal and current progress, described in natural language.
The simplest version of agent action planning/ generation, as seen in https://github.com/PathOnAI/LiteWebAgent/blob/main/litewebagent/agents/DemoAgent.py, involves saving the results of action generation and action execution. These results are stored as a list of messages, which is then passed to the LLM (Language Learning Model). The LLM uses this information to decide on the next action or to determine if it should stop.
Decouple agent action planning/generation and agent action grounding.