Skip to main content

aip_sdk.get_run

aip_sdk.get_run(run_id: str, client: APIClient | None = None) -> Run

Fetch an existing run by id for post-hoc inspection.

Thin module-level wrapper around Run.get() (mirroring get_sut()). Use this to inspect a run that was created earlier — e.g. in a previous session or by the CLI — without re-entering a with aip.run(...) block:

run = aip.get_run("run_abc123")
page = run.results()
print(page.metrics)

Parameters

  • run_id str: Id of an existing run.
  • client APIClient | None: Optional API client. Defaults to the module-level client.

Returns

  • Run: A Run bound to run_id.

Raises

  • AuthError: If no credentials are configured.