Skip to main content

aip_sdk.RunSession

aip_sdk.RunSession

One session's span structure with a run's evaluation results joined onto it.

Returned by Run.session(). A session may span several traces, so components are keyed on (trace_id, span_id).

Attributes

  • run_id str: The run these results were read from.
  • parent_id str: The session key this data was rolled up under — the same value passed to Run.session().
  • dataset_version_id str: The dataset version the run scored.
  • end_to_end list[SessionEndToEndResult]: Session/trace-granularity verdicts — the ones no single component owns.
  • components list[SessionComponent]: Every span in the session, including ones no partition covered.
  • evaluated_count int: Number of components that at least one metric scored.
  • total_count int: Total number of components in the session.

aip_sdk.RunSession.components​

aip_sdk.RunSession.components: list[SessionComponent] = Field(default_factory=list['SessionComponent'])

No docstring is defined in the source.

aip_sdk.RunSession.dataset_version_id​

aip_sdk.RunSession.dataset_version_id: str = Field(min_length=1)

No docstring is defined in the source.

aip_sdk.RunSession.end_to_end​

aip_sdk.RunSession.end_to_end: list[SessionEndToEndResult] = Field(default_factory=list['SessionEndToEndResult'])

No docstring is defined in the source.

aip_sdk.RunSession.evaluated_count​

aip_sdk.RunSession.evaluated_count: int = Field(ge=0)

No docstring is defined in the source.

aip_sdk.RunSession.model_config​

aip_sdk.RunSession.model_config = ConfigDict(extra='allow')

No docstring is defined in the source.

aip_sdk.RunSession.parent_id​

aip_sdk.RunSession.parent_id: str = Field(min_length=1)

No docstring is defined in the source.

aip_sdk.RunSession.run_id​

aip_sdk.RunSession.run_id: str = Field(min_length=1)

No docstring is defined in the source.

aip_sdk.RunSession.total_count​

aip_sdk.RunSession.total_count: int = Field(ge=0)

No docstring is defined in the source.