Pause the agent for a project.
(project_name: str)
| 151 | |
| 152 | @router.post("/pause", response_model=AgentActionResponse) |
| 153 | async 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) |
nothing calls this directly
no test coverage detected