MCPcopy Create free account
hub / github.com/zai-org/Open-AutoGLM / _handle_wait

Method _handle_wait

phone_agent/actions/handler_ios.py:237–246  ·  view source on GitHub ↗

Handle wait action.

(self, action: dict, width: int, height: int)

Source from the content-addressed store, hash-verified

235 return ActionResult(True, False)
236
237 def _handle_wait(self, action: dict, width: int, height: int) -> ActionResult:
238 """Handle wait action."""
239 duration_str = action.get("duration", "1 seconds")
240 try:
241 duration = float(duration_str.replace("seconds", "").strip())
242 except ValueError:
243 duration = 1.0
244
245 time.sleep(duration)
246 return ActionResult(True, False)
247
248 def _handle_takeover(self, action: dict, width: int, height: int) -> ActionResult:
249 """Handle takeover request (login, captcha, etc.)."""

Callers

nothing calls this directly

Calls 1

ActionResultClass · 0.70

Tested by

no test coverage detected