MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / get_agent_status

Function get_agent_status

server/routers/agent.py:71–87  ·  view source on GitHub ↗

Get the current status of the agent for a project.

(project_name: str)

Source from the content-addressed store, hash-verified

69
70@router.get("/status", response_model=AgentStatus)
71async 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)

Callers

nothing calls this directly

Calls 3

get_project_managerFunction · 0.85
AgentStatusClass · 0.85
healthcheckMethod · 0.45

Tested by

no test coverage detected