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

Function _wiki_node_payload

deployments/desktop/shared/agents.py:3213–3224  ·  view source on GitHub ↗
(node: Dict[str, Any])

Source from the content-addressed store, hash-verified

3211
3212def _report_doc_for_wiki_backfill(report: Dict[str, Any]) -> Dict[str, Any]:
3213 metadata = dict(report.get("metadata") or {})
3214 paper = {
3215 "id": metadata.get("paper_id"),
3216 "arxiv_id": metadata.get("arxiv_id") or report.get("arxiv_id"),
3217 "doi": metadata.get("doi"),
3218 "title": metadata.get("title") or report.get("title"),
3219 "authors": metadata.get("authors") or [],
3220 "abstract": metadata.get("abstract") or "",
3221 "publish_date": metadata.get("publish_date"),
3222 "pdf_path": metadata.get("pdf_path"),
3223 "pdf_url": metadata.get("pdf_url") or report.get("pdf_url"),
3224 "source": metadata.get("source") or "reading_report",
3225 }
3226 summary = str(report.get("snippet") or "").strip()
3227 return {

Callers 4

_daily_note_graphFunction · 0.85
wiki_graphFunction · 0.85
update_wiki_nodeFunction · 0.85
_resolve_wiki_mentionsFunction · 0.85

Calls 2

_compact_wiki_metadataFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected