first push
This commit is contained in:
14
backend/app/agents/dev_agent.py
Normal file
14
backend/app/agents/dev_agent.py
Normal file
@@ -0,0 +1,14 @@
|
||||
async def run_dev_agent(spec: dict, qa_feedback: list = None) -> dict:
|
||||
"""
|
||||
Agent Dev minimal :
|
||||
- retourne une pseudo arborescence + un code exemple
|
||||
"""
|
||||
return {
|
||||
"tree": [
|
||||
"main.py",
|
||||
"README.md",
|
||||
"app/__init__.py",
|
||||
],
|
||||
"code": 'print("Hello from ARC generated project")',
|
||||
"spec_title": spec.get("title"),
|
||||
}
|
||||
15
backend/app/agents/pm_agent.py
Normal file
15
backend/app/agents/pm_agent.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from app.schemas.spec import ProjectSpec
|
||||
|
||||
|
||||
async def run_pm_agent(user_input: str) -> ProjectSpec:
|
||||
"""
|
||||
Agent PM minimal :
|
||||
- transforme l'entrée utilisateur en cahier des charges structuré
|
||||
"""
|
||||
return ProjectSpec(
|
||||
title="Projet généré depuis demande utilisateur",
|
||||
description=user_input,
|
||||
requirements=["MVP minimal", "Architecture modulaire"],
|
||||
constraints=["Python", "LangGraph", "Pydantic"],
|
||||
target_stack="Python",
|
||||
)
|
||||
10
backend/app/agents/qa_agent.py
Normal file
10
backend/app/agents/qa_agent.py
Normal file
@@ -0,0 +1,10 @@
|
||||
async def run_qa_agent(generated_code: dict) -> dict:
|
||||
"""
|
||||
Agent QA minimal :
|
||||
- renvoie un statut de validation simulé
|
||||
"""
|
||||
return {
|
||||
"status": "passed",
|
||||
"logs": [],
|
||||
"checked_files": generated_code.get("tree", []),
|
||||
}
|
||||
Reference in New Issue
Block a user