Get the current status of the agent for a project.
(project_name: str)
| 69 | |
| 70 | @router.get("/status", response_model=AgentStatus) |
| 71 | async def get_agent_status(project_name: str): |
| 72 | """Get the current status of the agent for a project.""" |
| 73 | manager = get_project_manager(project_name) |
| 74 | |
| 75 | # Run healthcheck to detect crashed processes |
| 76 | await manager.healthcheck() |
| 77 | |
| 78 | return AgentStatus( |
| 79 | status=manager.status, |
| 80 | pid=manager.pid, |
| 81 | started_at=manager.started_at.isoformat() if manager.started_at else None, |
| 82 | yolo_mode=manager.yolo_mode, |
| 83 | model=manager.model, |
| 84 | parallel_mode=manager.parallel_mode, |
| 85 | max_concurrency=manager.max_concurrency, |
| 86 | testing_agent_ratio=manager.testing_agent_ratio, |
| 87 | ) |
| 88 | |
| 89 | |
| 90 | @router.post("/start", response_model=AgentActionResponse) |
nothing calls this directly
no test coverage detected