List session IDs for every live session created from this agent. Sessions that have been dropped (no Python references remain) are pruned lazily on each call. Result is sorted for stable output.
(&self, py: Python<'_>)
| 1365 | /// Sessions that have been dropped (no Python references remain) are |
| 1366 | /// pruned lazily on each call. Result is sorted for stable output. |
| 1367 | fn list_sessions(&self, py: Python<'_>) -> Vec<String> { |
| 1368 | let agent = self.inner.clone(); |
| 1369 | py.allow_threads(move || get_runtime().block_on(agent.list_sessions())) |
| 1370 | } |
| 1371 | |
| 1372 | /// Close a specific live session by its session ID. |
| 1373 | /// |