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_idstr: The run these results were read from.parent_idstr: The session key this data was rolled up under — the same value passed toRun.session().dataset_version_idstr: The dataset version the run scored.end_to_endlist[SessionEndToEndResult]: Session/trace-granularity verdicts — the ones no single component owns.componentslist[SessionComponent]: Every span in the session, including ones no partition covered.evaluated_countint: Number ofcomponentsthat at least one metric scored.total_countint: Total number ofcomponentsin 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.