DB-GPT [Bug] [模块名称] 计划器代理配置文件示例中,perpertie {xx} 或 {{xxx}} 是正确的,

btqmn9zl  于 2个月前  发布在  其他
关注(0)|答案(3)|浏览(29)

在提问前搜索

  • 我在 issues 中进行了搜索,但没有找到类似的问题。

操作系统信息

MacOS(M1, M2...)

Python版本信息

3.10

DB-GPT版本

主版本

相关场景

  • 聊天数据
  • 聊天Excel
  • 聊天数据库
  • 聊天知识库
  • 模型管理
  • Jmeter 盘
  • 插件

安装信息

设备信息

cpu8 16g

模型信息

通易达

发生了什么事

https://github.com/eosphoros-ai/DB-GPT/blob/main/dbgpt/agent/core/plan/planner_agent.py
计划器代理perperies示例的来源:

"""
user:help me build a sales report summarizing our key metrics and trends
assistants:[
    {{
        "serial_number": "1",
        "agent": "DataScientist",
        "content": "Retrieve total sales, average sales, and number of transactions grouped by "product_category"'.",
        "rely": ""
    }},
    {{
        "serial_number": "2",
        "agent": "DataScientist",
        "content": "Retrieve monthly sales and transaction number trends.",
        "rely": ""
    }},
    {{
        "serial_number": "3",
        "agent": "Reporter",
        "content": "Integrate analytical data into the format required to build sales reports.",
        "rely": "1,2"
    }}
]"""

为什么不是下面这样:
"""txt
用户:帮我构建一个汇总我们关键指标和趋势的销售报告
助手:[
{
"serial_number": "1",
"agent": "DataScientist",
"content": "检索按“product_category”分组的总销售额、平均销售额和交易次数。",
"rely": ""
},
{
"serial_number": "2",
"agent": "DataScientist",
"content": "检索每月销售额和交易数量趋势。",
"rely": ""
},
{
"serial_number": "3",
"agent": "Reporter",
"content": "将分析数据整合到构建销售报告所需的格式中。",
"rely": "1,2"
}
]"""

xpszyzbs

xpszyzbs1#

这是一个来自调试的示例:

AgentMessage(content='
You are a Planner, named Planner, your goal is Understand each of the following intelligent agents and their capabilities, using the provided resources, solve user problems by coordinating intelligent agents. Please utilize your LLM\'s knowledge and understanding ability to comprehend the intent and goals of the user\'s problem, generating a task plan that can be completed through the collaboration of intelligent agents without user assistance..
Please think step by step to achieve the goal. You can use the resources given below. 
At the same time, please strictly abide by the constraints and specifications in IMPORTANT REMINDER.

 Available Intelligent Agents:
 - DataScientist:Use database resources to conduct data analysis, analyze SQL, and provide recommended rendering methods.
- Reporter:Observe and organize various analysis results and construct professional reports 

*** IMPORTANT REMINDER ***

Please answer in simplified Chinese.



1. Every step of the task plan should exist to advance towards solving the user\'s goals. Do not generate meaningless task steps; ensure that each step has a clear goal and its content is complete.

2. Pay attention to the dependencies and logic of each step in the task plan. For the steps that are depended upon, consider the data they depend on and whether it can be obtained based on the current goal. If it cannot be obtained, please indicate in the goal that the dependent data needs to be generated.

3. Each step must be an independently achievable goal. Ensure that the logic and information are complete. Avoid steps with unclear objectives, like \'Analyze the retrieved issues data,\' where it\'s unclear what specific content needs to be analyzed.

4. Please ensure that only the intelligent agents mentioned above are used, and you may use only the necessary parts of them. Allocate them to appropriate steps strictly based on their described capabilities and limitations. Each intelligent agent can be reused.

5. Utilize the provided resources to assist in generating the plan steps according to the actual needs of the user\'s goals. Do not use unnecessary resources.

6. Each step should ideally use only one type of resource to accomplish a sub-goal. If the current goal can be broken down into multiple subtasks of the same type, you can create mutually independent parallel tasks.

7. Data resources can be loaded and utilized by the appropriate intelligent agents without the need to consider the issues related to data loading links.

8. Try to merge continuous steps that have sequential dependencies. If the user\'s goal does not require splitting, you can create a single-step task with content that is the user\'s goal.

9. Carefully review the plan to ensure it comprehensively covers all information involved in the user\'s problem and can ultimately achieve the goal. Confirm whether each step includes the necessary resource information, such as URLs, resource names, etc.



You can refer to the following examples:

user:help me build a sales report summarizing our key metrics and trends
assistants:[
    {{
        "serial_number": "1",
        "agent": "DataScientist",
        "content": "Retrieve total sales, average sales, and number of transactions grouped by "product_category"\'.",
        "rely": ""
    }},
    {{
        "serial_number": "2",
        "agent": "DataScientist",
        "content": "Retrieve monthly sales and transaction number trends.",
        "rely": ""
    }},
    {{
        "serial_number": "3",
        "agent": "Reporter",
        "content": "Integrate analytical data into the format required to build sales reports.",
        "rely": "1,2"
    }}
]

 Please response in the following json format:
            [
  {
    "serial_number": "Number of sub-tasks",
    "agent": "The agent name to complete current task",
    "content": "The task content of current step, make sure it can by executed by agent",
    "rely": "The rely task number(serial_number), e.g. 1,2,3, empty if no rely"
  }
]
        Make sure the response is correct json format and can be parsed by Python json.loads.
         '
2nbm6dog

2nbm6dog2#

感谢你的反馈,这是一个bug。你有兴趣修复它吗?

of1yzvn4

of1yzvn43#

这个问题已经被标记为 stale,因为已经超过30天没有任何活动。

相关问题