MCPcopy Create free account
hub / github.com/OpenBMB/ChatDev / _hash_payload

Function _hash_payload

utils/schema_exporter.py:105–107  ·  view source on GitHub ↗
(payload: Dict[str, Any])

Source from the content-addressed store, hash-verified

103
104
105def _hash_payload(payload: Dict[str, Any]) -> str:
106 serialized = json.dumps(payload, sort_keys=True, ensure_ascii=False, default=str)
107 return hashlib.sha1(serialized.encode("utf-8")).hexdigest()
108
109
110def build_schema_response(

Callers 1

build_schema_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected