Return run snapshots recorded by this session.
(&self, py: Python<'_>)
| 1803 | |
| 1804 | /// Return run snapshots recorded by this session. |
| 1805 | fn runs(&self, py: Python<'_>) -> PyResult<PyObject> { |
| 1806 | let session = self.inner.clone(); |
| 1807 | let runs = py.allow_threads(move || get_runtime().block_on(session.runs())); |
| 1808 | let json = serde_json::to_string(&runs) |
| 1809 | .map_err(|e| PyRuntimeError::new_err(format!("Failed to serialize runs: {e}")))?; |
| 1810 | json_string_to_py(py, &json) |
| 1811 | } |
| 1812 | |
| 1813 | /// Return a run snapshot by ID, or None when it is unknown. |
| 1814 | fn run_snapshot(&self, py: Python<'_>, run_id: String) -> PyResult<PyObject> { |
nothing calls this directly
no test coverage detected