feat(platform): Agent 与媒体能力 - 完善角色卡、音频协议与任务恢复链路

This commit is contained in:
ddcat666 committed 2026-10-01 09:42:51 +08:00
1 parent a8f83fedd5
commit 5650da6d31
91 files changed
+3438 -380

No files matched your search

@@ -220,6 +220,7 @@ func compileCloudAgentTools(req CloudAgentRequest, includeProfileTool bool) []ma
"rowId": str("update/remove 使用 canvas_read_storyboard 返回的真实 rowId;append 留空"),
"patch": cloudAgentStoryboardPatchSchema(),
}, "snapshotHash", "nodeId", "action")
add("canvas_create_character", "把画布上就绪的形象图片(可加声音音频)打包成角色卡:写入角色库并在画布放置角色卡节点,按权限审批。已有同名角色卡先复用;definition 只填有依据的设定。", cloudAgentCharacterCreateSchema(), "nodeId", "name", "imageNodeId")
add("canvas_edit_batch_table", "操作批量创作表组件:追加、修改或删除任务行,切换批量换装/创意生图,设置1/5/10并发,新增或减少参考图列,或设置覆盖各任务的全局提示词。必须先用 canvas_read_batch_table 获取最新 snapshotHash 和真实 rowId。行 patch 仅允许 enabled、inputNodeIds、prompt;prompt 可使用读取结果中的 @参考图1、@参考图2 等 mentionToken 指代本行对应位置的图片。append 未传 inputNodeIds 时会继承上一行参考图;图片ID必须来自当前画布。不能写 outputNodeId、任务状态、URL、storageKey 或任意 metadata。本工具只编辑计划,不提交收费生成。", map[string]any{
"snapshotHash": str("最近一次 canvas_read_batch_table 返回的 snapshotHash(这个表节点的版本;其它节点的改动不影响它)"),
"nodeId": str("真实批量创作表节点ID"),