Improve history passed to agents via background() #629
Labels
agent
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
prompt-engineering
Issues related to changes for prompts or tweaks for specific models
Milestone
I had to limit how much history we are passing because I was seeing instances where the reasoning created by previous agent was confusing other agents more than it was helping. For instance, sometimes the analyzer fix agent, when making a javax to jakarta fix can produce something like "You need add the jakarta dependency to the pom for this to work" in its reasoning. Now if this history is passed all the way down to a dependency or maven compiler fix agent that is working on a SymbolNotFound error which has nothing to do with the jakarta dependency, it confuses the agent. I think the best way to solve this problem would be to summarize each step taken along the way and update the previous history to prune irrelevant stuff. For instance, for the example I stated earlier, the history would look something like:
We fixed the import. That lead to a PackageNotFoundError. But then that is causing SymbolNotFound error that is unrelated.
The text was updated successfully, but these errors were encountered: