Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CommonstackAI/UncommonRoute
/ normalize_messages_to_hashes
Function
normalize_messages_to_hashes
uncommon_route/normalize.py:59–60 ·
view source on GitHub ↗
(messages: list[dict[str, Any]])
Source
from the content-addressed store, hash-verified
57
58
59
def
normalize_messages_to_hashes(messages: list[dict[str, Any]]) -> list[str]:
60
return
[hash16(normalize_message_text(m))
for
m in messages]
Callers
5
test_one_hash_per_message
Method · 0.90
test_same_messages_same_hashes
Method · 0.90
test_role_independent_only_content_matters
Method · 0.90
test_normalize_messages_to_hashes_pinned
Method · 0.90
_extract_session_v2_inputs
Function · 0.90
Calls
2
hash16
Function · 0.85
normalize_message_text
Function · 0.85
Tested by
4
test_one_hash_per_message
Method · 0.72
test_same_messages_same_hashes
Method · 0.72
test_role_independent_only_content_matters
Method · 0.72
test_normalize_messages_to_hashes_pinned
Method · 0.72