Smaller fixes

This commit is contained in:
Zvonimir Sabljic
2023-08-04 10:12:07 +02:00
parent 72e4a1cf64
commit 400281fb66
4 changed files with 7 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ class AgentConvo:
if isinstance(message_content, list):
if len(message_content) > 0 and isinstance(message_content[0], dict):
string_response = [
f'#{i + 1}\n' + array_of_objects_to_string(d)
f'#{i}\n' + array_of_objects_to_string(d)
for i, d in enumerate(message_content)
]
else:

View File

@@ -43,7 +43,6 @@ class Developer(Agent):
"user_tasks": self.project.user_tasks,
"technologies": self.project.architecture,
"array_of_objects_to_string": array_of_objects_to_string,
# TODO remove hardcoded folder path
"directory_tree": self.project.get_directory_tree(),
"current_task_index": current_task_index,
"sibling_tasks": sibling_tasks,

View File

@@ -1,7 +1,7 @@
{% if files|length > 0 %}
Here is how files look now:
{% for file in files %}
**{{ file.name }}**
**{{ file.path }}**
```{# file.language #}
{{ file.content }}
```

View File

@@ -3,7 +3,11 @@ So far, steps {{ finished_steps }} are finished so let's do
{% else %}
Let's start with the
{% endif %}
step #{{ step_index }} - `{{ step_description }}`. This step by step about what needs to be done to fulfill this step.
step #{{ step_index }}:
```
{{ step_description }}
```
This step by step about what needs to be done to fulfill this step.
{% if step_type == 'COMMAND' %}
Respond with all commands that need to be run to fulfill this step. In case this is a complex step that can't be completed by only running commands (maybe it requires some code changes or user review), respond with an array with only one item `COMPLEX`. Like this - `[{"command": "COMPLEX", "timeout": 0}]`
{% elif step_type == 'CODE_CHANGE' %}