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

Method resume_session

sdk/node/src/lib.rs:2873–2886  ·  view source on GitHub ↗
(
        &self,
        session_id: String,
        options: SessionOptions,
    )

Source from the content-addressed store, hash-verified

2871 /// @param options - Session options; `sessionStore` is required
2872 #[napi]
2873 pub fn resume_session(
2874 &self,
2875 session_id: String,
2876 options: SessionOptions,
2877 ) -> napi::Result<Session> {
2878 let opts = js_session_options_to_rust(Some(options))?;
2879 let session = self
2880 .inner
2881 .resume_session(&session_id, opts)
2882 .map_err(|e| napi::Error::from_reason(format!("Failed to resume session: {e}")))?;
2883 Ok(Session {
2884 inner: Arc::new(session),
2885 })
2886 }
2887
2888 /// Create a session pre-configured from a named agent definition.
2889 ///

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected