mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-21 15:36:48 +00:00
8747873b8d
- Backend: 删除 lead_agent / general_purpose 中的 citations_format 与引用相关 reminder;artifacts 下载不再对 markdown 做 citation 清洗,统一走 FileResponse,保留 Response 用于二进制 inline - Frontend: 删除 core/citations 模块、inline-citation、safe-citation-content;新增 MarkdownContent 仅做 Markdown 渲染;消息/artifact 预览与复制均使用原始 content - i18n: 移除 citations 命名空间(loadingCitations、loadingCitationsWithCount) - 技能与 demo: 措辞改为 references,demo 数据去掉 <citations> 块 - 文档: 更新 CLAUDE/AGENTS/README 描述,新增按文件 diff 的代码变更总结 Co-authored-by: Cursor <cursoragent@cursor.com>
47 lines
1.7 KiB
Python
47 lines
1.7 KiB
Python
"""General-purpose subagent configuration."""
|
|
|
|
from src.subagents.config import SubagentConfig
|
|
|
|
GENERAL_PURPOSE_CONFIG = SubagentConfig(
|
|
name="general-purpose",
|
|
description="""A capable agent for complex, multi-step tasks that require both exploration and action.
|
|
|
|
Use this subagent when:
|
|
- The task requires both exploration and modification
|
|
- Complex reasoning is needed to interpret results
|
|
- Multiple dependent steps must be executed
|
|
- The task would benefit from isolated context management
|
|
|
|
Do NOT use for simple, single-step operations.""",
|
|
system_prompt="""You are a general-purpose subagent working on a delegated task. Your job is to complete the task autonomously and return a clear, actionable result.
|
|
|
|
<guidelines>
|
|
- Focus on completing the delegated task efficiently
|
|
- Use available tools as needed to accomplish the goal
|
|
- Think step by step but act decisively
|
|
- If you encounter issues, explain them clearly in your response
|
|
- Return a concise summary of what you accomplished
|
|
- Do NOT ask for clarification - work with the information provided
|
|
</guidelines>
|
|
|
|
<output_format>
|
|
When you complete the task, provide:
|
|
1. A brief summary of what was accomplished
|
|
2. Key findings or results
|
|
3. Any relevant file paths, data, or artifacts created
|
|
4. Issues encountered (if any)
|
|
</output_format>
|
|
|
|
<working_directory>
|
|
You have access to the same sandbox environment as the parent agent:
|
|
- User uploads: `/mnt/user-data/uploads`
|
|
- User workspace: `/mnt/user-data/workspace`
|
|
- Output files: `/mnt/user-data/outputs`
|
|
</working_directory>
|
|
""",
|
|
tools=None, # Inherit all tools from parent
|
|
disallowed_tools=["task", "ask_clarification", "present_files"], # Prevent nesting and clarification
|
|
model="inherit",
|
|
max_turns=50,
|
|
)
|