camel [功能请求]任务设计和实现

6jjcrrmo  于 2个月前  发布在  其他
关注(0)|答案(5)|浏览(117)

必需的先决条件

动机

添加 Task 以更好地管理多代理工作流程

解决方案

Task 可以具有像 descriptionexpected_outputstructured output schematools 这样的属性来指定使用
Task 可以是 Message 的一种类型
需要对此进行更多的研究以获得更好的设计

替代方案

  • 无响应*

其他上下文

  • 无响应*
i1icjdpr

i1icjdpr1#

任务:任务是特定分配给代理的指令。

  • 任务需要具有结构化信息和一些状态(待处理,进行中,已完成)。
  • 任务可以通过消息传递
  • 任务具有拓扑关系
  • 我们需要知道如何管理任务:添加任务,删除任务,更新任务,排序任务等。
2guxujil

2guxujil2#

任务可能需要使用Planer Agent或Master/control Agent进行设计,但目前尚不支持。
在这里添加coco。

c9x0cxw0

c9x0cxw04#

任务可以进化、分解和生成。

lrpiutwd

lrpiutwd5#

任务可以被演化、分解和生成。
任务分解和演化的模板:

task_decompose_prompt = TextPrompt(
    """
You've been given the following objective, please divide this task into subtasks:

{task}

## constraints
Never forget you are a Task Decomposer of {role_name}.
The sub-tasks must be a numbered list by wrapping them with <task> </task>:
<task>
1. sub task 1
2. sub task 2
</task>
Each task shoud be concise, concrete and doable for a {role_name}.
You should make task plan and not ask me questions.
Be concrete.
""".strip()
)

task_evolve_prompt = TextPrompt(
    """
I want you act as a task creator.
Your goal is to draw inspiration from the given task to create a brand new task.
This new task should belong to the same domain as the given task but be even more complex.
The created task must be reasonable and must be understood and responded by humans.
The created task must be wrapped by <task> </task> tags:
<task>
... created task
</task>

## given task
{task}

## created task
""".strip()
)

相关问题