aip_sdk.SessionResult
aip_sdk.SessionResult
One metric's verdict on one occurrence within a session.
Attributes
partition_idstr | None: The partition scored, orNoneif this verdict named no saved partition.partition_namestr | None: The scored partition's name, orNoneunder the same condition aspartition_id.metricstr: The metric name.scorefloat | None: The score, orNonewhenerroris set — an occurrence that errored has no usable score.rationalestr | None: The judge's explanation forscore, when the metric is judge-based.errorstr | None: Why this occurrence could not be scored, orNoneon a successful verdict.metadatadict[str, Any] | None: What the metric judged against — e.g.expected_tools/called_tools/missing_toolsforagent.tool_selection_accuracy. The keys are the metric's own, so read them per metric rather than expecting a fixed shape;Nonewhen the platform recorded no metadata for this verdict.
aip_sdk.SessionResult.error
aip_sdk.SessionResult.error: str | None = None
No docstring is defined in the source.
aip_sdk.SessionResult.metadata
aip_sdk.SessionResult.metadata: dict[str, Any] | None = None
No docstring is defined in the source.
aip_sdk.SessionResult.metric
aip_sdk.SessionResult.metric: str = Field(min_length=1)
No docstring is defined in the source.
aip_sdk.SessionResult.model_config
aip_sdk.SessionResult.model_config = ConfigDict(extra='allow')
No docstring is defined in the source.
aip_sdk.SessionResult.partition_id
aip_sdk.SessionResult.partition_id: str | None = None
No docstring is defined in the source.
aip_sdk.SessionResult.partition_name
aip_sdk.SessionResult.partition_name: str | None = None
No docstring is defined in the source.
aip_sdk.SessionResult.rationale
aip_sdk.SessionResult.rationale: str | None = None
No docstring is defined in the source.
aip_sdk.SessionResult.score
aip_sdk.SessionResult.score: float | None = None
No docstring is defined in the source.