MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / _write

Method _write

benchmarks/run_benchmarks.py:232–235  ·  view source on GitHub ↗
(self, payload: dict)

Source from the content-addressed store, hash-verified

230 self.proc = None
231
232 def _write(self, payload: dict) -> None:
233 assert self.proc and self.proc.stdin
234 self.proc.stdin.write(json.dumps(payload) + "\n")
235 self.proc.stdin.flush()
236
237 def _read_response(self, expected_id: int) -> dict:
238 assert self.proc and self.proc.stdout

Callers 2

_requestMethod · 0.95
_notifyMethod · 0.95

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected