-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Feature] 让 subagent 拥有与主 agent 对话的上下文 #8411
Copy link
Copy link
Open
Labels
area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.The bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.enhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.The bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.enhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description / 描述
当前
_execute_handoff调用ctx.tool_loop_agent()后,只拿到LLMResponse(最终文本),子 Agent 内部的完整对话(系统提示 → 任务 → 工具调用 → 工具结果 → ... → 最终回复)全部丢失下次主 Agent 再委派同一个子 Agent 时,子 Agent 又是"白纸一张"——不记得上次主 Agent 让它做过什么
可以将子 Agent 的完整对话历史保留,实现主 Agent 与子 Agent 之间多次委派的持续性对话记忆
Use Case / 使用场景
适用于主 Agent 与子 Agent 多次、连续交互的场景
Willing to Submit PR? / 是否愿意提交PR?
Code of Conduct