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 return dict(metadata) if isinstance(metadata, dict) else {}
190
191
192def _first_text(paper: Dict[str, Any], metadata: Dict[str, Any], *keys: str) -> str:
193 for key in keys:
194 value = str(paper.get(key) or metadata.get(key) or "").strip()
195 if value:
196 return value
197 return ""
198
199

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