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

Function format_short_summary

agents/reading-agent/main.py:3725–3756  ·  view source on GitHub ↗

生成简短摘要(用于飞书消息) Args: paper: 论文字典 Returns: 简短摘要文本

(paper: Dict)

Source from the content-addressed store, hash-verified

3723
3724def format_short_summary(paper: Dict) -> str:
3725 """
3726 生成简短摘要(用于飞书消息)
3727
3728 Args:
3729 paper: 论文字典
3730
3731 Returns:
3732 简短摘要文本
3733 """
3734 title = paper.get("title", "Unknown")[:60]
3735 arxiv_id = paper.get("arxiv_id", "")
3736
3737 lines = []
3738 lines.append("=" * 60)
3739 lines.append("📄 精读报告已生成")
3740 lines.append("=" * 60)
3741 lines.append("")
3742 lines.append(f"**{title}**")
3743 lines.append("")
3744 lines.append(f"arXiv: `{arxiv_id}`")
3745 lines.append("")
3746 lines.append("报告包含:")
3747 lines.append(" • 核心问题")
3748 lines.append(" • 方法")
3749 lines.append(" • 贡献")
3750 lines.append(" • 实验")
3751 lines.append(" • 阅读建议")
3752 lines.append("")
3753 lines.append("点击文档链接查看完整报告 👇")
3754
3755 return "\n".join(lines)
3756
3757
3758def _infer_section_from_abstract(abstract: str, section_type: str) -> str:
3759 """

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected