Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Management & Context Condense for CodeAct Agent #1748

Open
xingyaoww opened this issue May 12, 2024 · 1 comment
Open

Memory Management & Context Condense for CodeAct Agent #1748

xingyaoww opened this issue May 12, 2024 · 1 comment
Assignees
Labels
agent framework strategies for prompting, agent, etc agent quality problems with specific agents enhancement New feature or request severity:medium Problems that affect many users
Milestone

Comments

@xingyaoww
Copy link
Collaborator

What problem or use case are you trying to solve?

Currently, CodeAct is bounded by the context window of a particular LLM. While this provides simplicity, actual long-range tasks require longer interaction (e.g., even more than 500 turns). So, how to effectively condense the context window is the next major point of improvement.

Describe the UX of the solution you'd like

Maintains a fixed context around 32k (which is good enough for most open-source LLMs), and if context go beyond 32k, condense it back to 32k. We probably need to do it a bit conservative: don't condense unless absolutely needed.

The agent should have a way to access their original memory (e.g., by open some files that contains its past interaction in the sandbox).

Do you have thoughts on the technical implementation?

Describe alternatives you've considered

Additional context

@xingyaoww xingyaoww added the enhancement New feature or request label May 12, 2024
@xingyaoww xingyaoww self-assigned this May 12, 2024
@xingyaoww xingyaoww added this to the 2024-06 milestone May 12, 2024
@xingyaoww xingyaoww added agent framework strategies for prompting, agent, etc agent quality problems with specific agents labels May 12, 2024
@xingyaoww xingyaoww changed the title Memory Management for CodeAct Agent Memory Management & Context Condense for CodeAct Agent May 12, 2024
@rbren rbren added the severity:medium Problems that affect many users label May 14, 2024
@rbren
Copy link
Collaborator

rbren commented May 14, 2024

@xingyaoww we moved the memory mgmt stuff into a common folder, so you should be able to get this pretty easily!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent framework strategies for prompting, agent, etc agent quality problems with specific agents enhancement New feature or request severity:medium Problems that affect many users
Projects
Development

No branches or pull requests

2 participants