add new tool: to_captcha

This commit is contained in:
VladislavIlin7 2026-04-21 23:32:09 +03:00
parent 50589232d6
commit f1f32d8366
14 changed files with 1008 additions and 130 deletions

View file

@ -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]: ...