修复定语错误

This commit is contained in:
ACT丶流星雨 2026-03-30 22:14:25 +08:00
parent ffdc6854c0
commit 44fa7d1b46
2 changed files with 5 additions and 5 deletions

View File

@ -135,7 +135,7 @@ function createSubAgent(parentCtx: AgentContext) {
const addPrompt = const addPrompt =
"\n" + "\n" +
[ [
"你可以使用如下XML格式写入工作区\n```", "你必须使用如下XML格式写入工作区\n```",
"拍摄计划:<scriptPlan>内容</scriptPlan>", "拍摄计划:<scriptPlan>内容</scriptPlan>",
"分镜表:<storyboardTable>内容</storyboardTable>", "分镜表:<storyboardTable>内容</storyboardTable>",
"```", "```",
@ -168,7 +168,7 @@ function createSubAgent(parentCtx: AgentContext) {
const systemPrompt = await fs.promises.readFile(skill, "utf-8"); const systemPrompt = await fs.promises.readFile(skill, "utf-8");
return runAgent({ return runAgent({
prompt, prompt,
system: systemPrompt + "你可以使用如下XML格式写入工作区\n<storySkeleton>故事骨架内容</storySkeleton>", system: systemPrompt + "你必须使用如下XML格式写入工作区\n<storySkeleton>故事骨架内容</storySkeleton>",
name: "监制", name: "监制",
memoryKey: "assistant:supervision", memoryKey: "assistant:supervision",
}); });

View File

@ -144,7 +144,7 @@ function createSubAgent(parentCtx: AgentContext) {
const systemPrompt = await fs.promises.readFile(skill, "utf-8"); const systemPrompt = await fs.promises.readFile(skill, "utf-8");
return runAgent({ return runAgent({
prompt, prompt,
system: systemPrompt + "\n你可以使用如下XML格式写入工作区\n<storySkeleton>故事骨架内容</storySkeleton>", system: systemPrompt + "\n你必须使用如下XML格式写入工作区\n<storySkeleton>故事骨架内容</storySkeleton>",
name: "编剧", name: "编剧",
memoryKey: "assistant:execution:storySkeleton", memoryKey: "assistant:execution:storySkeleton",
}); });
@ -159,7 +159,7 @@ function createSubAgent(parentCtx: AgentContext) {
const systemPrompt = await fs.promises.readFile(skill, "utf-8"); const systemPrompt = await fs.promises.readFile(skill, "utf-8");
return runAgent({ return runAgent({
prompt, prompt,
system: systemPrompt + "\n你可以使用如下XML格式写入工作区\n<adaptationStrategy>改编策略内容</adaptationStrategy>", system: systemPrompt + "\n你必须使用如下XML格式写入工作区\n<adaptationStrategy>改编策略内容</adaptationStrategy>",
name: "编剧", name: "编剧",
memoryKey: "assistant:execution:adaptationStrategy", memoryKey: "assistant:execution:adaptationStrategy",
}); });
@ -176,7 +176,7 @@ function createSubAgent(parentCtx: AgentContext) {
prompt, prompt,
system: system:
systemPrompt + systemPrompt +
`\n你可以使用如下XML格式写入工作区\nXML不得添加任何额外标签<script><item name="剧本名称">剧本内容</item><item name="剧本名称">剧本内容</item><item name="剧本名称">剧本内容</item></script>`, `\n你必须使用如下XML格式写入工作区\nXML不得添加任何额外标签<script><item name="剧本名称">剧本内容</item><item name="剧本名称">剧本内容</item><item name="剧本名称">剧本内容</item></script>`,
name: "编剧", name: "编剧",
memoryKey: "assistant:execution:script", memoryKey: "assistant:execution:script",
}); });