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

Function format_must_read_reason

deployments/feishu/daily-push-agent/main.py:858–868  ·  view source on GitHub ↗

Explain why a paper matched the must-read list.

(paper: Dict, profile: Dict)

Source from the content-addressed store, hash-verified

856
857
858def format_must_read_reason(paper: Dict, profile: Dict) -> str:
859 """Explain why a paper matched the must-read list."""
860 matches = get_must_read_matches(paper, profile or {})
861 parts = []
862 if matches.get("authors"):
863 parts.append(f"作者:{', '.join(matches['authors'])}")
864 if matches.get("institutions"):
865 parts.append(f"机构:{', '.join(matches['institutions'])}")
866 if matches.get("keywords"):
867 parts.append(f"关键词:{', '.join(matches['keywords'])}")
868 return ";".join(parts)
869
870
871def expand_direction_terms(canonical_directions: List[str]) -> Dict[str, Dict]:

Callers 1

format_push_cardFunction · 0.85

Calls 2

get_must_read_matchesFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected