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

Function _paper_metadata

deployments/desktop/shared/agents.py:184–188  ·  view source on GitHub ↗
(paper: Dict[str, Any])

Source from the content-addressed store, hash-verified

182
183
184def _paper_metadata(paper: Dict[str, Any]) -> Dict[str, Any]:
185 metadata = paper.get("metadata") or {}
186 if isinstance(metadata, str):
187 metadata = _load_json(metadata, {})
188 return dict(metadata) if isinstance(metadata, dict) else {}
189
190
191def _first_text(paper: Dict[str, Any], metadata: Dict[str, Any], *keys: str) -> str:

Callers 5

_paper_doiFunction · 0.70
_paper_arxiv_idFunction · 0.70
_paper_urlFunction · 0.70
_paper_pdf_urlFunction · 0.70
_paper_cardFunction · 0.70

Calls 2

getMethod · 0.80
_load_jsonFunction · 0.70

Tested by

no test coverage detected