Skip to main content

aip_sdk.list_metric_configs

aip_sdk.list_metric_configs(*, workspace_id: str | None = None, config_name: str | None = None, metric_name: str | None = None, page: int = 1, per_page: int = 20, client: APIClient | None = None, include_global: bool | None = None, all_workspaces: bool = False) -> list[MetricConfigSummary]

List metric configs visible to the caller, newest first.

Reads your session's workspace unless you name one, and raises if none is set. Pass all_workspaces=True to read across every workspace you can access.

Parameters

  • workspace_id str | None: Only configs owned by this workspace. Omitting it lists your session's workspace, and raises if none is set.
  • all_workspaces bool: Read across every workspace you can access.
  • config_name str | None: Filter by configuration name.
  • metric_name str | None: Filter by the metric implementation configured — not the config's own name.
  • page int: 1-based page number.
  • per_page int: Page size (1-100).
  • client APIClient | None: Optional pre-configured API client.
  • include_global bool | None: Deprecated and ignored — there is no more platform-wide scope to include, every config is workspace-owned. Passing any value (including False) emits a DeprecationWarning. Will be removed in a future release.

Returns

  • list[MetricConfigSummary]: list[MetricConfigSummary]: the configs on this page only — up to per_page
  • list[MetricConfigSummary]: rows, not every match. Full prompt templates are not included — call
  • list[MetricConfigSummary]: func:get_metric_config or MetricConfigSummary.load() for the detail
  • list[MetricConfigSummary]: object. Use iter_metric_configs() instead to walk every matching config
  • list[MetricConfigSummary]: regardless of how many pages that takes.

Raises

Example:

page_1 = aip.list_metric_configs(metric_name="agent.custom_judge_rubric")
for config in page_1:
print(config.config_name, config.config_version)