MCPcopy Create free account
hub / github.com/METR/vivaria / write

Method write

pyhooks/pyhooks/python_server.py:96–102  ·  view source on GitHub ↗
(self, message: str)

Source from the content-addressed store, hash-verified

94 self.which_files[get_thread_id()] = files
95
96 def write(self, message: str):
97 files = self.which_files.get(get_thread_id(), [self.default])
98 for file in files:
99 try:
100 file.write(message)
101 except: # noqa: E722
102 pass
103
104 def flush(self):
105 "required for compatibility"

Callers 15

queryMethod · 0.45
_temp_key_fileFunction · 0.45
test_queryFunction · 0.45
handleApiRequestMethod · 0.45
logJsonlFunction · 0.45
getHeaderFunction · 0.45
scoreSubmissionFunction · 0.45
openaiV1ModelsFunction · 0.45
openaiV1EmbeddingsFunction · 0.45
raw_routes.tsFile · 0.45

Calls 2

get_thread_idFunction · 0.85
getMethod · 0.45

Tested by 1

test_queryFunction · 0.36