← Về thư mục
openai4s/sdk/bash.py
- _shell_executable · function · L38-L49 — def _shell_executable() -> str
- _BoundedTail · class · L52-L93 — class _BoundedTail
- init · method · L62-L71 — def init(self, budget: int) -> None
- feed · method · L73-L86 — def feed(self, text: str) -> None
- retained · method · L89-L90 — def retained(self) -> int
- value · method · L92-L93 — def value(self) -> str
- _drain · function · L96-L106 — def _drain(stream: Any, sink: "_BoundedTail") -> None
- _within · function · L116-L121 — def _within(path: Path, root: Path) -> bool
- _capability_error · function · L124-L127 — def _capability_error(result: Any, fallback: str) -> RuntimeError
- validate_capability · function · L130-L210 — def validate_capability( capability: Any, *, command: str, cwd: str, generation: str, challenge: str, now_ms: int | None = None, ) -> dict[str, Any]
- _workspace_snapshot · function · L213-L241 — def _workspace_snapshot(workspace: Path) -> tuple[dict[str, tuple[int, int]], bool]
- _safe_diff_path · function · L244-L253 — def _safe_diff_path(path: str) -> str
- _workspace_diff · function · L256-L281 — def _workspace_diff( before: dict[str, tuple[int, int]], after: dict[str, tuple[int, int]], *, truncated: bool, ) -> dict[str, Any]
- bounded · function · L268-L269 — def bounded(items: list[str]) -> list[str]
- BashExecutor · class · L284-L606 — class BashExecutor
- init · method · L287-L303 — def init( self, host_call: HostCall, *, authorization_call: HostCall | None = None, generation: str | None = None, ) -> None
- run · method · L305-L565 — def run( self, command: str, *, timeout: float = 120, workdir: str | None = None, ) -> dict[str, Any]
- _egress_verdict · method · L567-L586 — def _egress_verdict(self, command: str, domains: list[str]) -> str | None
- _mark_token_used · method · L588-L598 — def _mark_token_used(self, token: str) -> None
- _coerce_output · method · L601-L606 — def _coerce_output(value: Any) -> str