MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / write

Method write

internbootcamp/utils/tool_server/cli.py:124–129  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

122 self.files = files
123
124 def write(self, data):
125 if data:
126 data = sanitize_log_message(data)
127 for f in self.files:
128 f.write(data)
129 f.flush()
130
131 def flush(self):
132 for f in self.files:

Callers 15

processMethod · 0.45
redirect_output_to_logFunction · 0.45
writeMethod · 0.45
start_worker_processFunction · 0.45
log_messageFunction · 0.45
mainFunction · 0.45
_logMethod · 0.45
_logMethod · 0.45
workerMethod · 0.45

Calls 2

sanitize_log_messageFunction · 0.70
flushMethod · 0.45

Tested by 2