Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

汇总结果 #78

Closed
lloydzhou opened this issue Apr 27, 2023 · 4 comments · Fixed by #86
Closed

汇总结果 #78

lloydzhou opened this issue Apr 27, 2023 · 4 comments · Fixed by #86
Assignees
Labels
enhancement New feature or request

Comments

@lloydzhou
Copy link
Collaborator

描述 / Description

  1. 如果遇到复杂的任务,子任务会被递归拆分成更细的子任务。
  2. 然后结果会散落在很长的消息列表里面。这个时候需要慢慢的找到消息,手动合并,挺麻烦的

期望的结果 / Expected Result

希望能在任务完成的时候给出一个按照任务层级归纳查看结果的地方

可行性 / Feasibility

  1. 更改AutonomousAgent队列,使用一个树形结构来做队列
  2. 每次的loop循环总是(广度)递归遍历数结构找到需要被执行的任务
  3. 每执行完一个任务,更新任务状态,记录任务结果。开启下一次loop循环
  4. 执行完成的时候增加一条合并结果后的消息?
@lloydzhou
Copy link
Collaborator Author

lloydzhou commented Apr 27, 2023

然后结果会散落在很长的消息列表里面

之所以结果散落在消息列表里面,原因是当前的实现使用队列存储递归的子任务的时候,实际上是模拟使用广度优先方式递归执行任务。所以导致任务顺序混乱

所以,应该有一个简单的方式(创建子任务的时候将子任务放到队列前面)让队列模拟深度优先的方式执行任务。

Dogtiti added a commit that referenced this issue Apr 27, 2023
hotfix: Change the execution order of subtasks #78
@lloydzhou
Copy link
Collaborator Author

期望结果

  1. 前面更改子任务执行顺序,只能让执行结果始终保持正确顺序。
  2. 但是结果和对应的任务还是错乱的,所以,任务需要有taskId,以便调整消息顺序。(使得聊天窗口从“日志窗口”变成真正的结果展示窗口)

image

@Xiaobonor

This comment was marked as off-topic.

@Dogtiti Dogtiti added the enhancement New feature or request label Apr 28, 2023
@Dogtiti
Copy link
Collaborator

Dogtiti commented Apr 28, 2023

@LiuElric add to roadmap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants