(self)
| 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": |