Exit the async context manager. Performs graceful cleanup by destroying all active sessions and stopping the CLI server.
(
self,
exc_type: type[BaseException] | None = None,
exc_val: BaseException | None = None,
exc_tb: TracebackType | None = None,
)
| 1353 | return self |
| 1354 | |
| 1355 | async def __aexit__( |
| 1356 | self, |
| 1357 | exc_type: type[BaseException] | None = None, |
| 1358 | exc_val: BaseException | None = None, |
| 1359 | exc_tb: TracebackType | None = None, |
| 1360 | ) -> None: |
| 1361 | """ |
| 1362 | Exit the async context manager. |
| 1363 | |
| 1364 | Performs graceful cleanup by destroying all active sessions and stopping |
| 1365 | the CLI server. |
| 1366 | """ |
| 1367 | await self.stop() |
| 1368 | |
| 1369 | async def start(self) -> None: |
| 1370 | """ |