blazickjp / GPT-CodeApp

This project is everything Chat-GPT should be for developers! An advanced AI-driven coding companion tailored for developers. Seamlessly bridging the gap between traditional coding and AI capabilities, we offer real-time chat interactions, on-demand agent functions, and intuitive code management. Feedback welcome!
MIT License
33 stars 12 forks source link

Enhancements to Memory Management and Logging, and Bug Fixes #22

Closed blazickjp closed 10 months ago

blazickjp commented 10 months ago

Type

Enhancement, Bug fix


Description

This PR introduces significant enhancements and bug fixes. The main changes include:


PR changes walkthrough

Relevant files                                                                                                                                 
Enhancement
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.**
+182/-5
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.**
+30/-18
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.**
+35/-7
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.**
+54/-4
Tests
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`.**
+90/-30
Bug fix
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.**
+1/-0
sweep-ai[bot] commented 10 months ago

Apply Sweep Rules to your PR?

sweep-ai[bot] commented 10 months ago
Sweeping Resolving merge conflicts: track the progress here.

I'm currently resolving the merge conflicts in this PR. I will stack a new PR once I'm done.

Configuring branch...

sweep-ai[bot] commented 10 months ago
Sweeping Resolving merge conflicts: track the progress here.

I'm currently resolving the merge conflicts in this PR. I will stack a new PR once I'm done.

blazickjp commented 10 months ago

/describe

github-actions[bot] commented 10 months ago

PR Description updated to latest commit (https://github.com/blazickjp/GPT-CodeApp/commit/e1c36e45e059783137709c68d3210613818db8e5)

blazickjp commented 10 months ago

Apply Sweep Rules to your PR?

Yes please