deerflow2/src/prompts
Willem Jiang 2e010a4619
feat: add analysis step type for non-code reasoning tasks (#677) (#723)
Add a new "analysis" step type to handle reasoning and synthesis tasks
that don't require code execution, addressing the concern that routing
all non-search tasks to the coder agent was inappropriate.

Changes:
- Add ANALYSIS enum value to StepType in planner_model.py
- Create analyst_node for pure LLM reasoning without tools
- Update graph routing to route analysis steps to analyst agent
- Add analyst agent to AGENT_LLM_MAP configuration
- Create analyst prompts (English and Chinese)
- Update planner prompts with guidance on choosing between
  analysis (reasoning/synthesis) and processing (code execution)
- Change default step_type inference from "processing" to "analysis"
  when need_search=false

Co-authored-by: Willem Jiang <143703838+willem-bd@users.noreply.github.com>
2025-11-29 09:46:55 +08:00
..
podcast feat: Add comprehensive Chinese localization support for issue #412 (#649) 2025-10-24 16:31:19 +08:00
ppt feat: Add comprehensive Chinese localization support for issue #412 (#649) 2025-10-24 16:31:19 +08:00
prompt_enhancer feat: Add comprehensive Chinese localization support for issue #412 (#649) 2025-10-24 16:31:19 +08:00
prose feat: Add comprehensive Chinese localization support for issue #412 (#649) 2025-10-24 16:31:19 +08:00
__init__.py chore: add license headers 2025-04-17 11:34:42 +08:00
analyst.md feat: add analysis step type for non-code reasoning tasks (#677) (#723) 2025-11-29 09:46:55 +08:00
analyst.zh_CN.md feat: add analysis step type for non-code reasoning tasks (#677) (#723) 2025-11-29 09:46:55 +08:00
coder.md feat: support multi-language 2025-04-21 19:50:34 +08:00
coder.zh_CN.md feat: Add comprehensive Chinese localization support for issue #412 (#649) 2025-10-24 16:31:19 +08:00
coordinator.md Fix: clarification bugs - max rounds, locale passing, and over-clarification (#647) 2025-10-24 16:43:39 +08:00
coordinator.zh_CN.md feat: Add comprehensive Chinese localization support for issue #412 (#649) 2025-10-24 16:31:19 +08:00
planner.md feat: add analysis step type for non-code reasoning tasks (#677) (#723) 2025-11-29 09:46:55 +08:00
planner.zh_CN.md feat: add analysis step type for non-code reasoning tasks (#677) (#723) 2025-11-29 09:46:55 +08:00
planner_model.py feat: add analysis step type for non-code reasoning tasks (#677) (#723) 2025-11-29 09:46:55 +08:00
reporter.md feat: add strategic_investment report style (#595) 2025-09-24 09:50:36 +08:00
reporter.zh_CN.md feat: Add comprehensive Chinese localization support for issue #412 (#649) 2025-10-24 16:31:19 +08:00
researcher.md fix: ensure researcher agent uses web search tool instead of generating URLs (#702) (#704) 2025-11-24 20:07:28 +08:00
researcher.zh_CN.md fix: ensure researcher agent uses web search tool instead of generating URLs (#702) (#704) 2025-11-24 20:07:28 +08:00
template.py feat: Add comprehensive Chinese localization support for issue #412 (#649) 2025-10-24 16:31:19 +08:00