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

Method to_dict

trinity/common/experience.py:81–89  ·  view source on GitHub ↗

Convert the EID to a dictionary.

(self)

Source from the content-addressed store, hash-verified

79 return f"EID(batch={self.batch}, task={self.task}, run={self.run}, step={self.step}, uuid={self.suffix})"
80
81 def to_dict(self) -> dict:
82 """Convert the EID to a dictionary."""
83 return {
84 "batch": self.batch,
85 "task": self.task,
86 "run": self.run,
87 "step": self.step,
88 "suffix": self.suffix,
89 }
90
91
92@dataclass(frozen=True)

Callers 5

defaultMethod · 0.45
serialize_manyMethod · 0.45
to_dictMethod · 0.45
set_priority_fn_argsFunction · 0.45

Calls

no outgoing calls