Skip to content

feat(orchestrator): 支持通用任务直接响应 (#252)#253

Merged
hrygo merged 2 commits into
mainfrom
feat/252-general-agent-direct-response
Feb 17, 2026
Merged

feat(orchestrator): 支持通用任务直接响应 (#252)#253
hrygo merged 2 commits into
mainfrom
feat/252-general-agent-direct-response

Conversation

@hrygo

@hrygo hrygo commented Feb 17, 2026

Copy link
Copy Markdown
Owner

Summary

实现 Orchestrator 通用任务直接响应功能,允许 LLM 直接处理简单任务(总结、翻译、简单问答),无需调用专家代理。

变更内容

  • TaskPlan 扩展:添加 DirectResponseResponse 字段
  • Decomposer 更新:解析逻辑支持直接响应场景
  • Executor 更新:分支处理直接响应,无须调用专家
  • Prompt 更新:添加 few-shot 示例引导 LLM 判断

技术细节

  • 当 LLM 判断任务为通用能力时(总结、翻译等),设置 direct_response: true
  • Executor 检测到此标志时直接返回 Response 内容
  • 无需调度专家代理,减少不必要的路由开销

Resolves #252

Test plan

  • 测试"总结这些笔记"触发直接响应
  • 测试"翻译成英文"触发直接响应
  • 测试需要专家的任务仍然正常调度
  • make check-all 通过

hotplex-ai and others added 2 commits February 17, 2026 13:16
- 添加 TaskPlan.DirectResponse 和 Response 字段
- 更新 Decomposer 解析逻辑支持直接响应
- 添加 Executor 分支处理直接响应
- 添加 few-shot 示例引导 LLM 判断直接响应场景

Resolves #252

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace amber color scheme with zinc (neutral gray) for NORMAL mode
dark theme to reduce visual impact and improve long-term usability.

Design rationale:
- Zinc is pure neutral gray, calm and professional
- Better aligns with "Second Brain" product positioning
- Distinct from GEEK (slate blue-gray) and EVOLUTION (emerald green)

Changes:
- PARROT_THEMES.NORMAL: amber -> zinc
- BLOCK_THEMES.NORMAL: amber -> zinc
- ChatHeader default mode: amber -> zinc
- NODE_COLORS.answer: amber -> zinc
- Update TimelineNode tests and snapshots

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hrygo hrygo merged commit a46a2e3 into main Feb 17, 2026
9 checks passed
@hrygo hrygo deleted the feat/252-general-agent-direct-response branch February 17, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] Orchestrator 支持通用任务直接响应

2 participants