feat(platform): Agent 与媒体能力 - 完善角色卡、音频协议与任务恢复链路
This commit is contained in:
1 parent
a8f83fedd5
commit
5650da6d31
91 files changed
+3438
-380
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user