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

Function _daily_note_topic_methods

agents/reading-agent/main.py:2361–2367  ·  view source on GitHub ↗
(section_body: str, user_profile: Optional[Dict[str, Any]])

Source from the content-addressed store, hash-verified

2359
2360def _daily_note_topic_methods(section_body: str, user_profile: Optional[Dict[str, Any]]) -> List[str]:
2361 section_text = re.sub(r"\s+", " ", section_body)
2362 matches: List[str] = []
2363 for term in _daily_note_profile_terms(user_profile):
2364 if _term_matches_daily_note_section(term, section_text):
2365 matches.append(term)
2366 return matches[:8]
2367
2368
2369def _daily_note_profile_payload(user_profile: Optional[Dict[str, Any]]) -> Dict[str, Any]:
2370 profile = user_profile if isinstance(user_profile, dict) else {}

Callers 1

Calls 2

Tested by

no test coverage detected