← Về thư mục
openai4s/sdk/compute.py
- SessionConcurrencyFull · class · L22-L29 — class SessionConcurrencyFull(RuntimeError)
- init · method · L26-L29 — def init(self, live: Any, limit: Any)
- _ComputeJob · class · L32-L160 — class _ComputeJob
- init · method · L36-L51 — def init( self, call: Callable[[str, list], Any], provider: str, job_id: str, workdir: str | None = None, )
- repr · method · L53-L60 — def repr(self) -> str
- _compute_call · method · L62-L63 — def _compute_call(self, op: str, kw: dict) -> Any
- job_id · method · L66-L67 — def job_id(self) -> str
- exit_code · method · L72-L93 — def exit_code(self)
- status · method · L96-L97 — def status(self) -> str
- workdir · method · L100-L104 — def workdir(self)
- result · method · L106-L143 — def result(self) -> dict
- cancel · method · L145-L160 — def cancel(self) -> Any
- _ComputeInstance · class · L163-L444 — class _ComputeInstance
- init · method · L171-L181 — def init( self, call: Callable[[str, list], Any], provider: str, provider_params: dict | None = None, )
- enter · method · L183-L184 — def enter(self) -> "_ComputeInstance"
- exit · method · L186-L190 — def exit(self, *_) -> None
- repr · method · L192-L201 — def repr(self) -> str
- _compute_call · method · L203-L204 — def _compute_call(self, op: str, kw: dict) -> Any
- submit_job · method · L206-L363 — def submit_job( self, *, command, intent, inputs=None, outputs=None, environment=None, harvest=None, timeout_seconds=None, scheduler=None, tier=None, credentials=None, on_full="wait", timeout=None, timeout_s=None, env=None, idempotency_key=None, )
- call_command · method · L365-L388 — def call_command( self, command, *, intent, login_shell=False, timeout_seconds=60, ) -> dict
- download · method · L390-L403 — def download(self, remote, local=None) -> Any
- upload · method · L405-L418 — def upload(self, local, remote) -> Any
- close · method · L420-L435 — def close(self) -> Any
- attach_job · method · L437-L444 — def attach_job(self, job_id) -> _ComputeJob
- _Compute · class · L447-L518 — class _Compute
- init · method · L457-L458 — def init(self, host_call: Callable[[str, list], Any])
- create · method · L460-L470 — def create( self, provider: str, provider_params: dict | None = None, ) -> _ComputeInstance
- set_concurrency_limit · method · L472-L483 — def set_concurrency_limit(self, max_concurrent: int) -> Any
- status · method · L485-L489 — def status(self) -> dict
- reconcile · method · L491-L503 — def reconcile(self) -> dict
- job_history · method · L505-L511 — def job_history(self, job_id: str) -> dict
- repr · method · L513-L518 — def repr(self) -> str
- _relativize_local · function · L521-L555 — def _relativize_local(p: Any) -> Any
- _normalize_provider_params · function · L558-L584 — def _normalize_provider_params(provider: str, pp: Any) -> dict | None
- _compute_call · function · L587-L612 — def _compute_call( host_call: Callable[[str, list], Any], op: str, kw: dict, ) -> Any