MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / from_payload

Method from_payload

sdks/python/src/e2a/v1/websocket.py:97–105  ·  view source on GitHub ↗
(cls, payload: dict)

Source from the content-addressed store, hash-verified

95
96 @classmethod
97 def from_payload(cls, payload: dict) -> "WSNotification":
98 return cls(
99 message_id=payload.get("message_id", ""),
100 from_=payload.get("from", ""),
101 recipient=payload.get("recipient") or payload.get("to") or "",
102 subject=payload.get("subject", ""),
103 received_at=payload.get("received_at", ""),
104 conversation_id=payload.get("conversation_id"),
105 )
106
107
108def _build_ws_url(base_url: str, agent_email: str) -> str:

Calls 1

getMethod · 0.45