Skip to content

Commit 02a6dcc

Browse files
authored
Merge pull request #79 from Pythagora-io/logical_fixes_z_2
Fix for adding related_api_endpoints
2 parents 84e860d + 663d6ab commit 02a6dcc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

core/agents/tech_lead.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ async def plan_epic(self, epic) -> AgentResponse:
247247
"pre_breakdown_testing_instructions": task.testing_instructions,
248248
"status": TaskStatus.TODO,
249249
"sub_epic_id": sub_epic_number,
250-
"related_api_endpoints": task.related_api_endpoints,
250+
"related_api_endpoints": [rae.model_dump() for rae in (task.related_api_endpoints or [])],
251251
}
252252
for task in epic_plan.plan
253253
]

core/prompts/developer/breakdown.prompt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,11 @@ You are currently working on task #{{ current_task_index + 1 }} with the followi
4646
```
4747
{{ task.description }}
4848
```
49+
{% if related_api_endpoints|length > 0 %}
50+
In this task, you need to focus on implementing the following endpoints:{% for api in related_api_endpoints %}{{ "`" ~ api.endpoint ~ "`" }}{% if not loop.last %},{% endif %}{% endfor %}
51+
4952

50-
In this task, you need to focus on implementing the following endpoints:
51-
{% for api in related_api_endpoints %}
52-
{{ "`" ~ api.endpoint ~ "`" }}{% if not loop.last %}
5353
{% endif %}
54-
{% endfor %}
5554
You must implement the backend API endpoints, remove the mocked that on the frontend side, and replace it with the real API request, implement the database model (if it's not implemented already), and implement the utility function (eg. 3rd party integration) that is needed for this endpoint. Whenever you need to create a utility function that uses a 3rd party integration, you **MUST** mock that function (create the function, return a mocked data, and specify the structure of the input and the output of the function in the comment above the function).
5655

5756
{% if task.get('pre_breakdown_testing_instructions') is not none %}

0 commit comments

Comments
 (0)