MCPcopy Create free account
hub / github.com/SySS-Research/hallucinate / handle

Method handle

hallucinate/handler.py:67–77  ·  view source on GitHub ↗
(self, m, data)

Source from the content-addressed store, hash-verified

65 self.extensions = extensions
66
67 def handle(self, m, data):
68 if m['type'] == 'error':
69 logging.error(m)
70 elif m['type'] == 'send':
71 p = m['payload']
72 if p['type'] in self.extensions:
73 self.extensions[p['type']](self, p)
74 else:
75 self.handle_payload(p, self.script.post)
76 else:
77 logging.error("Unknown message type %s", m['type'])
78
79
80def create_handler_for_args(args):

Callers

nothing calls this directly

Calls 1

handle_payloadMethod · 0.80

Tested by

no test coverage detected