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

Function _paper_title_file_stem

agents/reading-agent/main.py:317–321  ·  view source on GitHub ↗
(paper: Dict[str, Any], *, max_len: int = 96)

Source from the content-addressed store, hash-verified

315
316
317def _paper_title_file_stem(paper: Dict[str, Any], *, max_len: int = 96) -> str:
318 title = _clean_text(paper.get("title"))
319 if title:
320 return _safe_filename(title, max_len=max_len)
321 return _paper_file_stem(paper)
322
323
324def _wiki_ingest_enabled() -> bool:

Callers 1

Calls 4

_safe_filenameFunction · 0.85
_paper_file_stemFunction · 0.85
getMethod · 0.80
_clean_textFunction · 0.70

Tested by

no test coverage detected