-
Notifications
You must be signed in to change notification settings - Fork 44.6k
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
refactoring all json utilities #2032
Conversation
@merwanehamadi |
@bingoko Great thanks a lot. I tested it and also the unit tests keep passing.
But this approved, if you could help us with what's above after this is merged, that would be awesome PS: linter issue |
…llm module which need AI's assistance.
You're welcome! I've taken your feedback into account and have now split the functions into AI and non-AI functions. This should make it easier to test the non-AI functions without incurring token costs or the need to mock the AI magic function. Cheers! |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
# Conflicts: # autogpt/app.py # autogpt/json_fixes/auto_fix.py # autogpt/json_fixes/bracket_termination.py # autogpt/json_fixes/master_json_fix_method.py # autogpt/json_utils/json_fix_llm.py # autogpt/json_utils/utilities.py
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
@bingoko I love you |
@bingoko I have an issue running the agent |
done |
refactoring all json utilities
Background
This pull request addresses the need to refactor and consolidate all JSON-related functions into a few utility files under the JSON Utils module. Previously, these functions were scattered across various JSON modules and functions, making it difficult to maintain and understand the codebase. This change is in line with the project's overall goal of improving maintainability, readability, and structure.
Changes
json_utils
module to house all JSON-related utility functions.json_utils
module.Documentation
json_utils
module.Test Plan
PR Quality Checklist