MCPcopy Create free account
hub / github.com/RawdogReverend/TermNet / initialize_termnet

Method initialize_termnet

backend/termnet/main.py:87–92  ·  view source on GitHub ↗

Initialize the TerminalSession and TermNetAgent

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 1

handle_clientMethod · 0.95

Calls 3

TerminalSessionClass · 0.90
TermNetAgentClass · 0.90
startMethod · 0.45

Tested by

no test coverage detected