MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / write

Method write

trinity/buffer/storage/file.py:62–66  ·  view source on GitHub ↗
(self, data: List)

Source from the content-addressed store, hash-verified

60 return cls(config)
61
62 def write(self, data: List) -> None:
63 for item in data:
64 json_str = self.encoder.encode(item)
65 self.file.write(json_str + "\n")
66 self.file.flush()
67
68 def read(self) -> List:
69 raise NotImplementedError(

Callers 15

debugMethod · 0.45
put_batchMethod · 0.45
_process_experiencesMethod · 0.45
save_checkpointMethod · 0.45
save_state_dictMethod · 0.45
save_checkpointMethod · 0.45
_save_checkpointMethod · 0.45

Calls

no outgoing calls

Tested by 9

write_blocking_callMethod · 0.36
replace_callMethod · 0.36
test_file_writerMethod · 0.36
setUpMethod · 0.36
test_file_rotationMethod · 0.36