Small fixes

This commit is contained in:
Zvonimir Sabljic
2023-08-03 21:20:30 +02:00
parent 1c52b64a8d
commit c940bb9594
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ class AgentConvo:
# TODO remove this once the database is set up properly
message_content = response[0] if type(response) == tuple else response
if isinstance(message_content, list):
if isinstance(message_content[0], dict):
if len(message_content) > 0 and isinstance(message_content[0], dict):
string_response = [
f'#{i + 1}\n' + array_of_objects_to_string(d)
for i, d in enumerate(message_content)

View File

@@ -57,7 +57,7 @@ class Developer(Agent):
for (i, step) in enumerate(task_steps):
convo.load_branch('after_task_breakdown')
if step['type'] == 'command':
run_command_until_success(cmd['command'], cmd['timeout'], convo_dev_task)
run_command_until_success(step['command'], step['command_timeout'], convo)
elif step['type'] == 'code_change':
print(f'Implementing code changes for `{step["code_change_description"]}`')
code_monkey = CodeMonkey(self.project, self)