Skip to main content

aip_sdk.WorkspaceMetricConfigDefaultSpec

aip_sdk.WorkspaceMetricConfigDefaultSpec(metric: MetricRef, config_name: str, params: dict[str, Any] | None = None, prompts: dict[str, PromptConfig] | None = None, base_version: str | None = None)

One metric's new default configuration, for publish_workspace_metric_config_defaults().

Attributes

  • metric MetricRef: Which metric implementation this default parameterizes — its name identifies the lineage published into, and must appear at most once per call.
  • config_name str: Descriptive name for this configuration.
  • params dict[str, Any] | None: Non-prompt parameters for the metric.
  • prompts dict[str, PromptConfig] | None: Named Jinja2 prompt templates, keyed by slot name.
  • base_version str | None: Optional optimistic-concurrency precondition — the config_version last read for this metric via list_workspace_metric_config_defaults(). If the lineage has moved past it by the time the server processes this item, the whole call raises StaleWorkspaceMetricConfigDefaultBaseVersionError instead of inserting another version. This is what makes a transport-level retry of an identical request safe — see publish_workspace_metric_config_defaults().

aip_sdk.WorkspaceMetricConfigDefaultSpec.base_version​

aip_sdk.WorkspaceMetricConfigDefaultSpec.base_version: str | None = None

No docstring is defined in the source.

aip_sdk.WorkspaceMetricConfigDefaultSpec.config_name​

aip_sdk.WorkspaceMetricConfigDefaultSpec.config_name: str

No docstring is defined in the source.

aip_sdk.WorkspaceMetricConfigDefaultSpec.metric​

aip_sdk.WorkspaceMetricConfigDefaultSpec.metric: MetricRef

No docstring is defined in the source.

aip_sdk.WorkspaceMetricConfigDefaultSpec.params​

aip_sdk.WorkspaceMetricConfigDefaultSpec.params: dict[str, Any] | None = None

No docstring is defined in the source.

aip_sdk.WorkspaceMetricConfigDefaultSpec.prompts​

aip_sdk.WorkspaceMetricConfigDefaultSpec.prompts: dict[str, PromptConfig] | None = None

No docstring is defined in the source.