Harrison Chase 征集意见:deepagents 如何做到 async 原生
LangChain 的 Harrison Chase 在推特上公开问大家 deepagents 子 agent 异步通知该怎么设计,做了 agent 框架的可以去看两套方案再留言。
LangChain 创始人 Harrison Chase 发推讨论 deepagents 的 async 原生化改造,重点是让 async subagents 更突出。他列出父 agent 仍在运行时的两种子 agent 结果通知方案:打断父运行即时应用更新,或等父运行结束再批量合并。另一个人机协同问题是主 agent 暂停等人类批准时收到子 agent 更新,是等待人类响应后合并,还是恢复线程并可能重新请求同样的批准。
we are thinking a lot about how to make deepagents more async native. specifically about making async subagents work better/more prominent one key question is how does a finished subagent "notify" the parent agent? some default behaviors we're considering for when the parent is still running: 1/ interrupt parent run, apply subagent update, continue (basically same as "steer") 2/ wait for parent run to finish, then batch subagent update with any other new messages (basically same as "queue") another question is how to handle human in the loop? what if main agent is not running but paused and waiting explicit human response to an action? a/ wait for human to respond, then batch the subagent update with that b/ resume thread (which would cancel the human interrupt) with the subagent update (thread could then re-ask for the same human approval) any other options we're missing? 💬 15 🔄 0 ❤️ 13 👀 1080 📊 15 ⚡