模型第一次请求时,返回了4个tool,对应setup database schema,create API endpoints, write tests, write docs,且自动给create API endpoints生成了blockedBy=setup database schema,后面两项同理。
{
"subject": "create API endpoints",
"description": "Create API endpoints that interact with the database schema. Depends on schema being set up.",
"blockedBy": [
"setup database schema"
]
}
执行到TaskStore.create函数,验证依赖文件是否存在时,使用字典key作为文件名称验证,但实际文件命名为task_id,导致后续task文件无法创建
生成依赖关系我觉得也可以交给大模型来做,分三步
- tool定义中,新增task_id和parnet_id;
- 修改系统提示词,要求每个task必须存在唯一的task_id,限制id的生成规则(比如task-md5);根据上下文关系给parent_id赋值
- 修改TaskStore的create函数,task的id使用模型生成的id;修改正则校验或者移除
模型第一次请求时,返回了4个tool,对应setup database schema,create API endpoints, write tests, write docs,且自动给create API endpoints生成了blockedBy=setup database schema,后面两项同理。
执行到TaskStore.create函数,验证依赖文件是否存在时,使用字典key作为文件名称验证,但实际文件命名为task_id,导致后续task文件无法创建
生成依赖关系我觉得也可以交给大模型来做,分三步