Skip to main content

aip_sdk.RunnerBackend

aip_sdk.RunnerBackend

Abstract interface for runner dispatch strategies.

aip_sdk.RunnerBackend.create_run​

aip_sdk.RunnerBackend.create_run(client: Any, request_body: dict[str, Any]) -> dict[str, Any]

Create a run via the API and return the response payload.

Parameters

  • client Any: API client instance.
  • request_body dict[str, Any]: Request payload for the run.

Returns

  • dict[str, Any]: The API response as a dict.

Raises

  • APIError: If the platform API rejects or fails the request.

aip_sdk.RunnerBackend.get_runner_mode​

aip_sdk.RunnerBackend.get_runner_mode() -> str

Return the runner_mode string sent to the API.

aip_sdk.RunnerBackend.get_status​

aip_sdk.RunnerBackend.get_status(client: Any, run_id: str) -> dict[str, Any]

Fetch the current run status and return the API response.

Parameters

  • client Any: API client instance.
  • run_id str: ID of the run to fetch.

Returns

  • dict[str, Any]: The API response as a dict.

Raises

  • APIError: If the platform API rejects or fails the request.