Closed blazickjp closed 10 months ago
I'm currently resolving the merge conflicts in this PR. I will stack a new PR once I'm done.
Configuring branch...
I'm currently resolving the merge conflicts in this PR. I will stack a new PR once I'm done.
/describe
PR Description updated to latest commit (https://github.com/blazickjp/GPT-CodeApp/commit/e1c36e45e059783137709c68d3210613818db8e5)
Apply Sweep Rules to your PR?
Yes please
Type
Enhancement, Bug fix
Description
This PR introduces significant enhancements and bug fixes. The main changes include:
WorkingContext
to manage the working context of the application.ContextUpdate
to add information from the working context.MemoryManager
class with new attributes and methods, including aWorkingContext
instance and a methodupdate_context
to update the working context asynchronously.message_streaming
method inbackend/main.py
to includebackground_tasks
for executing tasks in the background.get_context
andlogs/errors
inbackend/main.py
to get the working context and error logs respectively.MemoryManager
class inbackend/tests/test_memory_manager.py
.RelevantLogHandler
inbackend/agent/agent_prompts.py
to handle relevant logs.SystemPromptHandler
class inbackend/memory/system_prompt_handler.py
to include aRelevantLogHandler
instance and the working context.frontend/components/DirectorySelectOption.js
to handle the 'Tab' key press.PR changes walkthrough
4 files
memory_manager.py
backend/memory/memory_manager.py
**The file `backend/memory/memory_manager.py` has been
significantly refactored. - A new class `WorkingContext`
has been introduced to manage the working context of the
application. It includes methods to create tables, add, get,
and remove context. - A new class `ContextUpdate` has been
introduced to add information from the working context. -
The `MemoryManager` class has been updated with new
attributes and methods. It now includes a `WorkingContext`
instance and a method `update_context` to update the working
context asynchronously. - The `add_message` method has been
updated to include a check for function calls. - The
`set_directory` method has been added to set the project
directory.**
main.py
backend/main.py
**The file `backend/main.py` has been updated with several
changes. - The `message_streaming` method now includes
`background_tasks` to add tasks that are executed in the
background. - The `set_directory` method has been updated to
set the project directory in the `MemoryManager` instance. -
New endpoints `get_context` and `logs/errors` have been
added to get the working context and error logs
respectively. - Several print statements have been removed
for cleaner code.**
agent_prompts.py
backend/agent/agent_prompts.py
**The file `backend/agent/agent_prompts.py` has been updated
with new prompts and a new class `RelevantLogHandler` to
handle relevant logs.**
system_prompt_handler.py
backend/memory/system_prompt_handler.py
**The file `backend/memory/system_prompt_handler.py` has been
updated with several changes. - A new class
`RelevantLogHandler` has been introduced to handle relevant
logs. - The `SystemPromptHandler` class has been updated to
include a `RelevantLogHandler` instance and the working
context. - The `set_system` method has been updated to
include the working context and relevant logs in the system
prompt.**
1 files
test_memory_manager.py
backend/tests/test_memory_manager.py
**The file `backend/tests/test_memory_manager.py` has been
updated with new test cases for the `MemoryManager` class.
The tests cover methods like `add_message` and
`get_context`.**
1 files
DirectorySelectOption.js
frontend/components/DirectorySelectOption.js
**The file `frontend/components/DirectorySelectOption.js` has
been updated with a minor change to handle the 'Tab' key
press in the `handleKeyDown` method.**