MCPcopy Create free account
hub / github.com/AI45Lab/Code / runs

Method runs

sdk/python/src/lib.rs:1805–1811  ·  view source on GitHub ↗

Return run snapshots recorded by this session.

(&self, py: Python<'_>)

Source from the content-addressed store, hash-verified

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> {

Callers

nothing calls this directly

Calls 4

json_string_to_pyFunction · 0.85
block_onMethod · 0.80
get_runtimeFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected