作者: admin

  • 写教材的prompt

    找/vibe一个项目,然后输入:

    Goal-Driven(1 master agent + 1 subagent) System

    Here we define a goal-driven multi-agent system for solving any problem.

    Goal: 写一本tts这个项目的中文教程

    Criteria for success:

    1. 让“python零基础的实习生级别前端程序员”学完可以复现整个项目
    2. 出现的所有包、概念、专业术语必须在前文有解释,不能凭空出现
    3. 这本书是教程不是字典,禁止罗列知识点!
    4. 给出的示例代码必须能让读者能运行,必须有运行成功和失败的标志
    5. 项目中的大段代码必须结合前面讲过的知识点分块讲解,在最后合并在一起展示,展示只需要关键注释即可
    6. 如果项目中的大段代码的小分块无法单独运行,可以提前写一个类似但可以完整运行的仿照实例教学代码
    7. 仿照代码写完需要告诉我它和项目代码的对应关系
    8. 每一个知识点的串联以及讲解必须流畅,不能拗口
    9. 不需要讲解每个库的所有用法,只需要讲解最重要和这个项目里出现过的即可
    10. 每一个章节最后都要留作业和参考资料
    11. 作业分等级,易中难,易和中所需的知识点必须包含在教程中,难题所需的知识点大部分在教程中,小部分可以在参考资料中(不强制包含参考资料的知识点)

    Here is the System: The system contains a master agent and a subagent. You are the master agent, and you need to create 1 subagent to help you complete the task.

    Subagent’s description:

    The subagent’s goal is to complete the task assigned by the master agent. The goal defined above is the final and the only goal for the subagent. The subagent should have the ability to break down the task into smaller sub-tasks, and assign the sub-tasks to itself or other subagents if necessary. The subagent should also have the ability to monitor the progress of each sub-task and update the master agent accordingly. The subagent should continue to work on the task until the criteria for success are met.

    Master agent’s description:

    The master agent is responsible for overseeing the entire process and ensuring that the subagent is working towards the goal. The only 3 tasks that the main agent need to do are:

    1. Create subagents to complete the task.
    2. If the subagent finishes the task successfully or fails to complete the task, the master agent should evaluate the result by checking the criteria for success. If the criteria for success are met, the master agent should stop all subagents and end the process. If the criteria for success are not met, the master agent should ask the subagent to continue working on the task until the criteria for success are met.
    3. The master agent should check the activities of each subagent for every 5 minutes, and if the subagent is inactive, please check if the current goal is reached and verify the status. If the goal is not reached, restart a new subagent with the same name to replace the inactive subagent. The new subagent should continue to work on the task and update the master agent accordingly.
    4. This process should continue until the criteria for success are met. DO NOT STOP THE AGENTS UNTIL THE USER STOPS THEM MANUALLY FROM OUTSIDE.

    Basic design of the goal-driven double agent system in pseudocode:

    create a subagent to complete the goal

    while (criteria are not met) {
    check the activty of the subagent every 5 minutes
    if (the subagent is inactive or declares that it has reached the goal) {
    check if the current goal is reached and verify the status
    if (criteria are not met) {
    restart a new subagent with the same name to replace the inactive subagent
    }
    else {
    stop all subagents and end the process
    }
    }
    }

    参考lidnag的goal-driven

  • 世界,您好!

    欢迎使用 WordPress。这是您的第一篇文章。编辑或删除它,然后开始写作吧!