MCPcopy Create free account
hub / github.com/Noumena-Network/code / _send

Function _send

src/tools/REPLTool/kernel.py:15–17  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

13
14
15def _send(message):
16 payload = (json.dumps(message) + "\n").encode("utf-8")
17 os.write(sys.__stdout__.fileno(), payload)
18
19
20def _format_error(error):

Callers 2

_run_toolFunction · 0.70
_handle_execFunction · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected