guantao 19 часов назад
Родитель
Сommit
3dce870655

+ 4 - 4
examples/production_plan/config.py

@@ -31,7 +31,7 @@ RUN_CONFIG = RunConfig(
         reflect_prompt="",  # 自定义反思 prompt;空则使用默认,见 agent/core/prompts/knowledge.py:REFLECT_PROMPT
 
         # agent运行完成后提取(不代表任务完成,agent 可能中途退出等待人工评估)
-        enable_completion_extraction=False,
+        enable_completion_extraction=True,
         completion_reflect_prompt="",  # 自定义复盘 prompt;空则使用默认,见 agent/core/prompts/knowledge.py:COMPLETION_REFLECT_PROMPT
 
         # 知识注入(agent切换当前工作的goal时,自动注入相关知识)
@@ -39,7 +39,7 @@ RUN_CONFIG = RunConfig(
 
         # 默认字段(保存/搜索时自动注入)
         owner="sunlit.howard@gmail.com",  # 所有者(空则尝试从 git config user.email 获取,再空则用 agent:{agent_id})
-        default_tags={"project": "research", "domain": "ai_agent"},  # 默认 tags(会与工具调用参数合并)
+        default_tags={"project": "production_plan", "domain": "ai_agent"},  # 默认 tags(会与工具调用参数合并)
         default_scopes=["org:cybertogether"],  # 默认 scopes
         default_search_types=["strategy"],  # 默认搜索类型过滤
         default_search_owner="sunlit.howard@gmail.com"  # 默认搜索 owner 过滤(空则不过滤)
@@ -49,8 +49,8 @@ RUN_CONFIG = RunConfig(
 
 # ===== 任务配置 =====
 
-INPUT_DIR = "examples/research/huahua"       # 输入素材目录
-OUTPUT_DIR = "examples/research/outputs/huahua_3"                   # 输出目录 ID,输出保存在 examples/plan/outputs/{OUTPUT_DIR}/
+INPUT_DIR = "examples/production_plan/huahua"       # 输入素材目录
+OUTPUT_DIR = "examples/production_plan/outputs/huahua_3"                   # 输出目录 ID,输出保存在 examples/plan/outputs/{OUTPUT_DIR}/
 
 
 # ===== 基础设施配置 =====

+ 1 - 1
frontend/react-template/src/components/FlowChart/FlowChart.tsx

@@ -305,7 +305,7 @@ const FlowChartComponent: ForwardRefRenderFunction<FlowChartRef, FlowChartProps>
       if (target.type === "message") {
         const pSeq = (target.data as any).parent_sequence;
         const sourceSeq = source.type === "message" ? (source.data as any).sequence : undefined;
-        if (typeof pSeq === "number" && sourceSeq !== pSeq) {
+        if (source.type !== "folded" && typeof pSeq === "number" && sourceSeq !== pSeq) {
           shouldConnect = false;
         }
       }