Resume a previously saved session by ID. Loads the session data from the store, rebuilds the `AgentSession` with the saved conversation history, and returns it ready for continued use. The `options` must include a `session_store` (or `with_file_session_store`) that contains the saved session. The resumed session uses the **workspace stored in the snapshot**, not a workspace from `options`. The
(
&self,
session_id: &str,
options: SessionOptions,
)
| 434 | /// Runtime: this loads the snapshot via `block_in_place`, so it must be called |
| 435 | /// on a multi-threaded Tokio runtime (it panics on a current-thread runtime). |
| 436 | pub fn resume_session( |
| 437 | &self, |
| 438 | session_id: &str, |
| 439 | options: SessionOptions, |
| 440 | ) -> Result<AgentSession> { |
| 441 | agent_sessions::resume_session(self, session_id, options) |
| 442 | } |
| 443 | |
| 444 | /// Return the IDs of every live session created from this agent. |
| 445 | /// |