MCPcopy Create free account
hub / github.com/JoshuaPostel/texaform / get_existing_agents

Method get_existing_agents

python/hud.py:34–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32
33
34 def get_existing_agents(self) -> Dict[str, List[int]]:
35 existing_agents = defaultdict(list)
36
37 while True:
38 resp = self.send("LIST AGNT")
39 parts = resp.split()
40 port = int(parts[0])
41 kind = parts[1]
42
43 if port in existing_agents[kind]:
44 return existing_agents
45 else:
46 existing_agents[kind].append(port)

Callers 1

main.pyFile · 0.80

Calls 2

appendMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected