MCPcopy Index your code
hub / github.com/AI45Lab/Code / resume_session

Method resume_session

sdk/python/src/lib.rs:1294–1303  ·  view source on GitHub ↗
(&self, session_id: String, options: PySessionOptions)

Source from the content-addressed store, hash-verified

1292 /// options: SessionOptions with ``session_store`` set to the backing store
1293 #[pyo3(signature = (session_id, options))]
1294 fn resume_session(&self, session_id: String, options: PySessionOptions) -> PyResult<PySession> {
1295 let opts = build_rust_session_options(options)?;
1296 let session = self
1297 .inner
1298 .resume_session(&session_id, opts)
1299 .map_err(|e| PyRuntimeError::new_err(format!("Failed to resume session: {e}")))?;
1300 Ok(PySession {
1301 inner: Arc::new(session),
1302 })
1303 }
1304
1305 /// Create a session pre-configured from a named agent definition.
1306 ///

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected