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

Function _first_text

deployments/desktop/shared/agents.py:191–196  ·  view source on GitHub ↗
(paper: Dict[str, Any], metadata: Dict[str, Any], *keys: str)

Source from the content-addressed store, hash-verified

189
190
191def _first_text(paper: Dict[str, Any], metadata: Dict[str, Any], *keys: str) -> str:
192 for key in keys:
193 value = str(paper.get(key) or metadata.get(key) or "").strip()
194 if value:
195 return value
196 return ""
197
198
199def _doi_value(value: Any) -> str:

Callers 4

_paper_doiFunction · 0.85
_paper_arxiv_idFunction · 0.85
_paper_urlFunction · 0.85
_paper_pdf_urlFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected