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

Function fetch_nodes_by_ids

deployments/desktop/shared/agents.py:3744–3768  ·  view source on GitHub ↗
(candidate_ids: List[str])

Source from the content-addressed store, hash-verified

3742 "updated_at": None,
3743 }
3744
3745
3746def daily_note_mentions(user_id: str, query: str = "", limit: int = 8) -> Dict[str, Any]:
3747 del user_id
3748 entries = _daily_note_reading_entries(scope="all", query=query, limit=limit)
3749 nodes = []
3750 for entry in entries:
3751 node = _daily_note_reading_node(entry)
3752 nodes.append(
3753 {
3754 "node_id": node["node_id"],
3755 "node_type": "paper",
3756 "title": node["title"],
3757 "body": str(entry.get("summary") or "")[:500],
3758 "score": 1.0,
3759 "metadata": node["metadata"],
3760 }
3761 )
3762 return {"nodes": nodes, "source": "daily_note_deep_reading"}
3763
3764
3765def _parse_daily_note_topic_summaries(path: Path) -> Dict[str, Dict[str, Any]]:
3766 try:
3767 lines = path.read_text(encoding="utf-8").splitlines()
3768 except OSError:
3769 return {}
3770 summaries: Dict[str, Dict[str, Any]] = {}
3771 current_topic = ""

Callers 1

wiki_graphFunction · 0.85

Calls 4

row_to_nodeFunction · 0.85
getMethod · 0.80
fetchallMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected