BrowserUse_and_ComputerUse_.../api/clients/browser_rpc_contracts.py

15 lines
458 B
Python

from typing import Any, Protocol
class BrowserRpcError(RuntimeError):
pass
class BrowserRpcRunner(Protocol):
async def run(self, task_id: str, task: str, timeout_sec: float) -> dict[str, Any]: ...
async def verify_captcha(self, task_id: str) -> dict[str, Any]: ...
async def resume(self, task_id: str, timeout_sec: float) -> dict[str, Any]: ...
async def abort(self, task_id: str, reason: str | None = None) -> dict[str, Any]: ...