Initialize the TerminalSession and TermNetAgent
(self)
| 85 | self.agent = None |
| 86 | |
| 87 | async def initialize_termnet(self): |
| 88 | """Initialize the TerminalSession and TermNetAgent""" |
| 89 | if self.term is None: |
| 90 | self.term = TerminalSession() |
| 91 | await self.term.start() |
| 92 | self.agent = TermNetAgent(self.term) |
| 93 | |
| 94 | async def stream_agent_response(self, websocket, user_input: str): |
| 95 | """Stream the agent's response back to the client with real-time capture""" |
no test coverage detected