Skip to main content

aip_sdk.SessionResult

aip_sdk.SessionResult

One metric's verdict on one occurrence within a session.

Attributes

  • partition_id str | None: The partition scored, or None if this verdict named no saved partition.
  • partition_name str | None: The scored partition's name, or None under the same condition as partition_id.
  • metric str: The metric name.
  • score float | None: The score, or None when error is set — an occurrence that errored has no usable score.
  • rationale str | None: The judge's explanation for score, when the metric is judge-based.
  • error str | None: Why this occurrence could not be scored, or None on a successful verdict.
  • metadata dict[str, Any] | None: What the metric judged against — e.g. expected_tools/called_tools/ missing_tools for agent.tool_selection_accuracy. The keys are the metric's own, so read them per metric rather than expecting a fixed shape; None when 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.