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

Function _is_report_record_current

agents/reading-agent/main.py:1372–1378  ·  view source on GitHub ↗
(report_record: Optional[Dict[str, Any]])

Source from the content-addressed store, hash-verified

1370
1371def _is_report_record_current(report_record: Optional[Dict[str, Any]]) -> bool:
1372 if not isinstance(report_record, dict):
1373 return False
1374 metadata = report_record.get("metadata") or {}
1375 if not isinstance(metadata, dict):
1376 return False
1377 return _clean_text(metadata.get("report_version")) == READING_REPORT_OUTPUT_VERSION
1378
1379
1380def _report_record_matches_language(report_record: Optional[Dict[str, Any]], response_language: str) -> bool:
1381 if not isinstance(report_record, dict):

Callers 2

create_reading_reportFunction · 0.85

Calls 2

getMethod · 0.80
_clean_textFunction · 0.70

Tested by

no test coverage detected