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

Function _append_analysis_note

agents/reading-agent/main.py:772–783  ·  view source on GitHub ↗
(base: Any, extra: Any)

Source from the content-addressed store, hash-verified

770
771def _append_analysis_note(base: Any, extra: Any) -> str:
772 base_text = _clean_text(base)
773 extra_text = _clean_text(extra)
774 if not base_text:
775 return extra_text
776 if not extra_text:
777 return base_text
778 if extra_text in base_text:
779 return base_text
780 if base_text in extra_text:
781 return extra_text
782 return f"{base_text} {extra_text}"
783
784
785def _preferred_evidence_top_k(user_profile: Dict[str, Any]) -> int:
786 preferences = (user_profile or {}).get("report_preferences", {}) or {}

Callers 2

_merge_report_payloadFunction · 0.85

Calls 1

_clean_textFunction · 0.70

Tested by

no test coverage detected