MCPcopy Create free account
hub / github.com/Louisym/MiniCC / to_dict

Method to_dict

tutorials/13_multi_agent_coordination.py:138–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 self.timestamp = time.time()
137
138 def to_dict(self) -> dict:
139 return {
140 "from": self.from_agent,
141 "to": self.to_agent,
142 "type": self.msg_type.value,
143 "content": self.content,
144 "timestamp": self.timestamp,
145 }
146
147 @staticmethod
148 def from_dict(data: dict) -> "AgentMessage":

Callers 1

sendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected