Skip to main content

aip_sdk.TraceMetric

aip_sdk.TraceMetric(scorer: str, mean: float, std: float, count: int, pass_rate: float, partition_type: PartitionType | None = None, partition_id: str | None = None, metric: str | None = None)

A Metric from a trace-metric run, identifying its series.

partition_type/partition_id are the identity of the measurement this summarises — present whenever the platform recorded them, regardless of how many targets the run scored — and None only when reading an artifact that predates those columns.

Attributes

  • partition_type PartitionType | None: The granularity this metric was measured at, or None for an artifact written before this column existed.
  • partition_id str | None: The partition scored, or None for a SESSION/TRACE target that named no saved partition, or for an artifact predating this column.
  • metric str | None: The bare metric name (e.g. "agent.custom_judge_rubric") — distinct from scorer, the RESULT COLUMN a metric scored under several stored configs occupies one of ({metric}__cfg__{config_name}). Equal to scorer for a metric resolving a single config.

aip_sdk.TraceMetric.metric​

aip_sdk.TraceMetric.metric: str | None = None

No docstring is defined in the source.

aip_sdk.TraceMetric.partition_id​

aip_sdk.TraceMetric.partition_id: str | None = None

No docstring is defined in the source.

aip_sdk.TraceMetric.partition_type​

aip_sdk.TraceMetric.partition_type: PartitionType | None = None

No docstring is defined in the source.

Inherited members​

Inherited from libs/aip-sdk/src/aip_sdk/models.py

aip_sdk.TraceMetric.count​

aip_sdk.TraceMetric.count: int

No docstring is defined in the source.

Inherited from libs/aip-sdk/src/aip_sdk/models.py

aip_sdk.TraceMetric.mean​

aip_sdk.TraceMetric.mean: float

No docstring is defined in the source.

Inherited from libs/aip-sdk/src/aip_sdk/models.py

aip_sdk.TraceMetric.pass_rate​

aip_sdk.TraceMetric.pass_rate: float

No docstring is defined in the source.

Inherited from libs/aip-sdk/src/aip_sdk/models.py

aip_sdk.TraceMetric.scorer​

aip_sdk.TraceMetric.scorer: str

No docstring is defined in the source.

Inherited from libs/aip-sdk/src/aip_sdk/models.py

aip_sdk.TraceMetric.std​

aip_sdk.TraceMetric.std: float

No docstring is defined in the source.