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

Function pause_agent

server/routers/agent.py:153–163  ·  view source on GitHub ↗

Pause the agent for a project.

(project_name: str)

Source from the content-addressed store, hash-verified

151
152@router.post("/pause", response_model=AgentActionResponse)
153async def pause_agent(project_name: str):
154 """Pause the agent for a project."""
155 manager = get_project_manager(project_name)
156
157 success, message = await manager.pause()
158
159 return AgentActionResponse(
160 success=success,
161 status=manager.status,
162 message=message,
163 )
164
165
166@router.post("/resume", response_model=AgentActionResponse)

Callers

nothing calls this directly

Calls 3

get_project_managerFunction · 0.85
AgentActionResponseClass · 0.85
pauseMethod · 0.80

Tested by

no test coverage detected