MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _pick_first_value

Method _pick_first_value

src/services/web2_mail.py:68–73  ·  view source on GitHub ↗
(self, payload: Dict[str, Any], *keys: str)

Source from the content-addressed store, hash-verified

66 self._mailboxes_by_token[token] = mailbox
67
68 def _pick_first_value(self, payload: Dict[str, Any], *keys: str) -> str:
69 for key in keys:
70 value = payload.get(key)
71 if value not in (None, ""):
72 return str(value).strip()
73 return ""
74
75 def _normalize_mailbox_payload(self, payload: Any) -> Dict[str, Any]:
76 if isinstance(payload, str):

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected