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

Supercoder Improve tool addition #755

Merged
merged 38 commits into from
Jul 20, 2023
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
6a12a41
Updated the improve code in toolkit
COLONAYUSH Jul 7, 2023
4bcb8c8
Added logic for code feedback (improve code)
COLONAYUSH Jul 7, 2023
f3c38b5
Added code and prompt for improve code logic
COLONAYUSH Jul 7, 2023
df7478b
Updated the file for taking code
COLONAYUSH Jul 7, 2023
5ff3334
Updated the prompt file
COLONAYUSH Jul 7, 2023
88ac6a9
Added overwrite file logic
COLONAYUSH Jul 10, 2023
45b523d
Updated file
COLONAYUSH Jul 10, 2023
5998f80
Updated the improve code logic
COLONAYUSH Jul 10, 2023
470732b
Updated the prompt for improve code
COLONAYUSH Jul 10, 2023
33fd0ea
Updated the prompt
COLONAYUSH Jul 10, 2023
eafc3ab
Updated the prompt
COLONAYUSH Jul 11, 2023
f202176
Merge branch 'dev' of github.com:TransformerOptimus/SuperAGI into sup…
COLONAYUSH Jul 11, 2023
9e6c95d
Added read_file logic in file manager
COLONAYUSH Jul 11, 2023
d831db6
Update the code for reading code files
COLONAYUSH Jul 11, 2023
89d61b3
Update the prompt for new logic
COLONAYUSH Jul 11, 2023
77c0ae0
Merge branch 'dev' of github.com:TransformerOptimus/SuperAGI into sup…
COLONAYUSH Jul 12, 2023
626ba53
Updated the logic
COLONAYUSH Jul 12, 2023
a5944df
Merge resolve - Addition of overwrite logic
COLONAYUSH Jul 13, 2023
a363f17
merge resolve
COLONAYUSH Jul 13, 2023
d61ba79
Improved the code
COLONAYUSH Jul 13, 2023
e16b4db
Updated file code
COLONAYUSH Jul 13, 2023
b4cc774
Update
CoffeeCoder16 Jul 13, 2023
7c33833
Revert "Update"
CoffeeCoder16 Jul 13, 2023
1f8dbbb
Updated the file
COLONAYUSH Jul 13, 2023
b1a42d9
Merge branch 'dev' of github.com:TransformerOptimus/SuperAGI into sup…
COLONAYUSH Jul 13, 2023
f316517
Updated the addition logic
COLONAYUSH Jul 13, 2023
d42a0a7
Updated the prompt
COLONAYUSH Jul 13, 2023
2fe0946
Added code functionality
COLONAYUSH Jul 13, 2023
f529e4e
Updated the prompt for write code
COLONAYUSH Jul 13, 2023
845dff8
Updated the code file
COLONAYUSH Jul 13, 2023
5c938f4
Removed comment
COLONAYUSH Jul 13, 2023
7e6998d
Removed overwrite file
COLONAYUSH Jul 13, 2023
0656f79
Removed comment
COLONAYUSH Jul 13, 2023
eb0d371
Added logger
COLONAYUSH Jul 13, 2023
7349a7f
Added unittest for the improve code tool
COLONAYUSH Jul 18, 2023
c82be82
logger addition
COLONAYUSH Jul 18, 2023
ff124fc
Added fix for file name
COLONAYUSH Jul 20, 2023
cd398b3
Merge branch 'dev' into supercoder-feature-add
Autocop-Agent Jul 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
  • Loading branch information
CoffeeCoder16 committed Jul 13, 2023
commit b4cc774f9e18c477978de420dfe6543b7b490dfc
8 changes: 5 additions & 3 deletions superagi/controllers/agent_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,13 @@ def update_agent_template(agent_template_id: int,

for key, value in agent_configs.items():
agent_template_config = db.session.query(AgentTemplateConfig).filter(
AgentTemplateConfig.agent_template_id == agent_template_id, AgentTemplateConfig.key == key).first()
AgentTemplateConfig.agent_template_id == agent_template_id,
AgentTemplateConfig.key == key).first()
if agent_template_config is None:
# create the template config
agent_template_config = AgentTemplateConfig(agent_template_id=agent_template_id, key=key)
agent_template_config.value = value["value"]

agent_template_config.value = value

db.session.add(agent_template_config)
db.session.commit()

Expand Down