(
&self,
session_id: String,
options: SessionOptions,
)
| 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 | /// |
nothing calls this directly
no test coverage detected