add new tool: to_captcha
This commit is contained in:
parent
50589232d6
commit
f1f32d8366
14 changed files with 1008 additions and 130 deletions
|
|
@ -1,8 +1,15 @@
|
|||
from typing import Any, Protocol
|
||||
|
||||
|
||||
class BrowserRpcError(RuntimeError): ...
|
||||
class BrowserRpcError(RuntimeError):
|
||||
pass
|
||||
|
||||
|
||||
class BrowserRpcRunner(Protocol):
|
||||
async def run(self, task: str, timeout_sec: float) -> dict[str, Any]: ...
|
||||
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]: ...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue