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

Function _report_payload_from_metadata

agents/reading-agent/main.py:2182–2199  ·  view source on GitHub ↗
(
    metadata: Dict[str, Any],
    report_content: str,
    report: Dict[str, Any],
)

Source from the content-addressed store, hash-verified

2180
2181def _report_payload_from_metadata(
2182 metadata: Dict[str, Any],
2183 report_content: str,
2184 report: Dict[str, Any],
2185) -> Dict[str, Any]:
2186 summary = (
2187 _markdown_section_excerpt(report_content, "一句话总结", "摘要")
2188 or _clean_text(report.get("snippet"))
2189 )
2190 return {
2191 "paper_summary": summary,
2192 "one_sentence_summary": summary,
2193 "recommendation_label": metadata.get("recommendation_label"),
2194 "generation_provider": metadata.get("generation_provider"),
2195 "generation_model": metadata.get("generation_model"),
2196 "report_style": metadata.get("report_style"),
2197 "response_language": metadata.get("response_language"),
2198 }
2199
2200
2201def sync_daily_notes_from_reports(
2202 *,

Callers 1

Calls 3

getMethod · 0.80
_clean_textFunction · 0.70

Tested by

no test coverage detected