Skip to main content

aip_sdk.HostedRunner

aip_sdk.HostedRunner

Runner backend for AIP-hosted evaluation infrastructure.

aip_sdk.HostedRunner.create_run​

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

Create a run on hosted infrastructure and return the API response.

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.HostedRunner.get_runner_mode​

aip_sdk.HostedRunner.get_runner_mode() -> str

Return the runner mode identifier for hosted infrastructure.

Returns

  • str: The string "hosted".

aip_sdk.HostedRunner.get_status​

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

Fetch the current run status from hosted infrastructure.

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.