MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / to_dict

Method to_dict

verifier/AgentVerifier/WorkflowToLean.py:114–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 return self.exec_type != "deterministic"
113
114 def to_dict(self) -> dict:
115 d: dict = {
116 "id": self.id, "name": self.name, "step_type": self.step_type,
117 "reads": [r.to_dict() for r in self.reads],
118 "writes": [w.to_dict() for w in self.writes],
119 }
120 if self.instruction is not None:
121 d["instruction"] = self.instruction
122 if self.submodule_ref is not None:
123 d["submodule_ref"] = self.submodule_ref.to_dict()
124 return d
125
126 @staticmethod
127 def from_dict(d: dict) -> "NodeIR":

Callers 1

to_dictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected