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

Function _daily_note_profile_payload

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

Source from the content-addressed store, hash-verified

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 {}
2371 must_read = profile.get("must_read") or {}
2372 must_read_keywords = must_read.get("keywords") if isinstance(must_read, dict) else []
2373 return {
2374 "core_directions": profile.get("core_directions") or {},
2375 "topic_weights": profile.get("topic_weights") or {},
2376 "methodology_preferences": profile.get("methodology_preferences") or {},
2377 "must_read_keywords": must_read_keywords or [],
2378 }
2379
2380
2381def _daily_note_topic_summary(
2382 category: str,

Callers 1

Calls 1

getMethod · 0.80

Tested by

no test coverage detected