Context :
Initial Solution:
One Deep Agent with playwright tools, memory (old selenium scripts), skills ( navigation skills etc )
Given a Natural Language Prompt, it should explore the given website and get enough data from memory and skills and implement the natural Language testcase
From the chat history one final step is to write playwright script for the given Natural Language Prompt
Issues :
- LLM stopping before achieving the goal asking user for things which are already present in skills/memory
2. LLM Context window overflow that it forgets initial steps and redoes the first step after a few steps
So, Pivot to a sub agent architecture:
Issues:
-
Playwright subagent when has a doubt return the control back to main agent, the main agent then consults documentation sub agent and returns with an updated task but here’s the cache : Playwright subagent forgot its initial steps and tries to do everything from start which is very bad
-
Sometimes while returning playwright subagent lies that the task is done which is bad and main agent has no access to subagent’s chat history so the main agent just believes which is very bad
So the main issue is here how do I handle chat history I need a solution native to langraph not manual system prompting and back and forth of state transfer between agents which makes it indeterministic
Please help me my deadline at a startup is this Monday
Please help . Let me know if any further information is required
Found an example of the same architecture but still the problem persists in this example too
how_to_fix_your_context/notebooks/03-context-quarantine.ipynb at main · langchain-ai/how_to_fix_your_context
