feat(*): Agent工作流 - 完善审批、分镜协作与资源交互体验
This commit is contained in:
1 parent
435bc487cf
commit
298bee1fa9
38 files changed
+508
-1263
No files matched your search
@@ -120,6 +120,13 @@ export function storyboardRowsOutputContract(requirement: string) {
|
||||
].join("\n");
|
||||
}
|
||||
|
||||
// 旧版本会把项目画风执行规范追加到分镜剧情末尾;分镜规划只保留用户原始剧情。
|
||||
export function stripProjectStyleExecutionBlocks(prompt: string): string {
|
||||
const marker = "【项目画风执行规范】";
|
||||
const markerIndex = prompt.indexOf(marker);
|
||||
return (markerIndex >= 0 ? prompt.slice(0, markerIndex) : prompt).trim();
|
||||
}
|
||||
|
||||
// 分镜文本任务实际发出的 prompt:技能上下文只描述工作流、不约束输出结构,画布节点和章节分镜又都没有
|
||||
// metadata.promptTemplateOperation(后端只在有该字段时编译服务端模板),所以契约必须由调用方显式拼上,
|
||||
// 否则模型按自然语言习惯返回 Markdown 表格或直接续写正文,解析阶段拿不到 rows。
|
||||
|
||||
Reference in new issue
Block a user