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

+5 -1
View File
@@ -66,7 +66,11 @@ func runProtocolAdapterTaskWithPolicy(ctx context.Context, input canvasGeneratio
if streamedResult != nil {
created = protocol.CreateResult{Status: protocol.StatusSucceeded, Result: streamedResult}
} else {
created, err = adapter.ParseCreate(ctx, body)
if parser, ok := adapter.(protocol.RequestAwareCreateParser); ok {
created, err = parser.ParseCreateWithRequest(ctx, request, body)
} else {
created, err = adapter.ParseCreate(ctx, body)
}
}
if err != nil {
return nil, err