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

Function _is_reading_report_record

deployments/desktop/shared/agents.py:707–714  ·  view source on GitHub ↗
(report: Dict[str, Any])

Source from the content-addressed store, hash-verified

705 }
706
707
708def _is_reading_report_record(report: Dict[str, Any]) -> bool:
709 metadata = report.get("metadata") or {}
710 if metadata.get("report_version") or metadata.get("generation_provider") or metadata.get("generation_model"):
711 return True
712 if metadata.get("pdf_path") or metadata.get("doc_token") or metadata.get("doc_url"):
713 return True
714 source_type = str(metadata.get("report_source_type") or metadata.get("source_type") or "").strip()
715 return source_type in {"arxiv", "pdf", "local_pdf", "feishu_file_key", "reading_report"}
716
717

Callers 1

_all_report_recordsFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected