MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _keyword_resolves_to_direction

Function _keyword_resolves_to_direction

agents/must-read-manager/main.py:150–154  ·  view source on GitHub ↗
(value: Any, canonical_direction: str)

Source from the content-addressed store, hash-verified

148
149
150def _keyword_resolves_to_direction(value: Any, canonical_direction: str) -> bool:
151 resolved = resolve_canonical_direction(clean_must_read_value(str(value or "")), include_paper_terms=True)
152 if resolved:
153 return resolved.get("canonical_name") == canonical_direction
154 return normalize_direction_key(value) == canonical_direction
155
156
157def _route_keyword_to_interest_direction(

Callers 1

Calls 4

clean_must_read_valueFunction · 0.85
normalize_direction_keyFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected