← Về thư mục
openai4s_compute_provider/_protocol.py
- ExecResult · class · L15-L22 — class ExecResult(Protocol)
- wait · method · L22-L22 — def wait(self) -> int
- ByocProvider · class · L25-L87 — class ByocProvider(Protocol)
- import_and_patch · method · L34-L34 — def import_and_patch(self) -> None
- apply_auth · method · L36-L36 — def apply_auth(self, creds: dict[str, str]) -> None
- install_unauth_hook · method · L38-L38 — def install_unauth_hook(self, on_expired: Callable[[], NoReturn]) -> None
- create_sandbox · method · L40-L49 — def create_sandbox( self, spec: dict[str, Any], install_id: str, tags: dict[str, str] | None = None ) -> str
- exec · method · L51-L59 — def exec( self, sandbox_id: str, argv: list[str], *, stdin: Iterable[bytes] | None = None, env: dict[str, str] | None = None, timeout: int | None = None, ) -> ExecResult
- list_owned · method · L61-L61 — def list_owned(self, install_id: str) -> list[dict[str, Any]]
- read_owner · method · L63-L63 — def read_owner(self, sandbox_id: str) -> str | None
- terminate · method · L65-L65 — def terminate(self, sandbox_id: str) -> None
- list_dir · method · L67-L75 — def list_dir( self, root: str, path: str, *, limit: int | None = None ) -> list[dict[str, Any]]
- list_volumes · method · L77-L81 — def list_volumes(self) -> list[dict[str, Any]]
- read_file · method · L83-L87 — def read_file(self, root: str, path: str) -> Iterable[bytes]
- ByocError · class · L90-L97 — class ByocError(Exception)
- init · method · L95-L97 — def init(self, kind: str, msg: str = "")