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

Method default

trinity/buffer/storage/file.py:14–21  ·  view source on GitHub ↗
(self, o)

Source from the content-addressed store, hash-verified

12
13class _Encoder(json.JSONEncoder):
14 def default(self, o):
15 if isinstance(o, Experience):
16 return o.to_dict()
17 if isinstance(o, Task):
18 return o.to_dict()
19 if isinstance(o, EID):
20 return o.to_dict()
21 return super().default(o)
22
23
24class FileStorage:

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected