Start the interactive-shell UI. We pass in the *StreamManager* plus the ToolManager for parity with production code.
(
tool_manager,
*,
provider: str,
model: str,
)
| 271 | |
| 272 | |
| 273 | async def _enter_interactive_mode( |
| 274 | tool_manager, |
| 275 | *, |
| 276 | provider: str, |
| 277 | model: str, |
| 278 | ) -> bool: |
| 279 | """ |
| 280 | Start the interactive-shell UI. |
| 281 | |
| 282 | We pass in the *StreamManager* plus the ToolManager for parity with |
| 283 | production code. |
| 284 | """ |
| 285 | from mcp_cli.commands.interactive import interactive_mode |
| 286 | |
| 287 | result: bool = await interactive_mode( |
| 288 | stream_manager=tool_manager.stream_manager, |
| 289 | tool_manager=tool_manager, |
| 290 | provider=provider, |
| 291 | model=model, |
| 292 | ) |
| 293 | return result |
| 294 | |
| 295 | |
| 296 | # --------------------------------------------------------------------------- # |