可以通过以下方法显著改善报告质量:
- 系统提示定制: Use
set_system_prompt()
明确要求报告格式(如”生成Markdown格式报告,包含引言、数据分析和结论三部分”) - Source control:配置子代理时指定
tool="tavily_search"
并设置参数site_restriction
限定权威数据源 - multi-round verification: Settings
review_agent = DeepAgent(role="校对")
对初稿进行事实核查 - Template presets:在虚拟文件系统中预存
template.md
作为写作大纲 - parameterization: Settings
agent.temperature=0.3
降低输出随机性
这些措施能系统性提升报告的专业度。
This answer comes from the articleDeep Agents: a Python toolkit for rapidly building AI agents for complex tasksThe