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

Function _keywords

agents/wiki-agent/ingest/from_feedback.py:88–92  ·  view source on GitHub ↗
(paper: Dict[str, Any])

Source from the content-addressed store, hash-verified

86
87
88def _keywords(paper: Dict[str, Any]) -> str:
89 candidates: List[str] = []
90 for key in ("keywords", "topics", "categories", "subjects"):
91 candidates.extend(_normalize_list(paper.get(key)))
92 return " ".join(dict.fromkeys(item.lower() for item in candidates if item))
93
94
95def _relation_for_action(action: str, action_type: str) -> Optional[str]:

Callers 1

Calls 2

getMethod · 0.80
_normalize_listFunction · 0.70

Tested by

no test coverage detected