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

Method serialize

trinity/common/experience.py:301–303  ·  view source on GitHub ↗

Serialize the experience to bytes.

(self)

Source from the content-addressed store, hash-verified

299 self.custom_fields = custom_fields or []
300
301 def serialize(self) -> bytes:
302 """Serialize the experience to bytes."""
303 return self.serialize_many([self])
304
305 @classmethod
306 def deserialize(cls, data: bytes) -> Experience:

Calls 1

serialize_manyMethod · 0.95