feat: add optional bot backchannels to prompt pipelines
Quality gate / backend (push) Waiting to run
Quality gate / frontend (push) Waiting to run

This commit is contained in:
Xin Wang
2026-10-30 14:39:22 +08:00
parent 1eda4190db
commit eb35caffcb
9 changed files with 429 additions and 0 deletions
+124
View File
@@ -1198,6 +1198,24 @@
"title": "Body_upload_test_image_api_test_assets_images_post",
"type": "object"
},
"BotBackchannelConfig": {
"properties": {
"delaySecs": {
"default": 4.0,
"maximum": 15.0,
"minimum": 2.0,
"title": "Delaysecs",
"type": "number"
},
"enabled": {
"default": false,
"title": "Enabled",
"type": "boolean"
}
},
"title": "BotBackchannelConfig",
"type": "object"
},
"BuiltInToolBase": {
"properties": {
"description": {
@@ -6406,6 +6424,9 @@
"bargeIn": {
"$ref": "#/components/schemas/BargeInConfig"
},
"botBackchannel": {
"$ref": "#/components/schemas/BotBackchannelConfig"
},
"turnDetection": {
"$ref": "#/components/schemas/TurnDetectionConfig"
},
@@ -6612,6 +6633,69 @@
],
"title": "VariableValueSource",
"type": "object"
},
"VoiceRequest": {
"properties": {
"action": {
"enum": [
"create_voice",
"query_voice"
],
"title": "Action",
"type": "string"
},
"apiKey": {
"default": "",
"maxLength": 4096,
"title": "Apikey",
"type": "string"
},
"apiUrl": {
"maxLength": 2048,
"title": "Apiurl",
"type": "string"
},
"audio": {
"default": "",
"maxLength": 14000000,
"title": "Audio",
"type": "string"
},
"model": {
"title": "Model",
"type": "string"
},
"prefix": {
"default": "assistant",
"pattern": "^[A-Za-z0-9]{1,10}$",
"title": "Prefix",
"type": "string"
},
"resourceId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Resourceid"
},
"voiceId": {
"default": "",
"maxLength": 512,
"title": "Voiceid",
"type": "string"
}
},
"required": [
"apiUrl",
"model",
"action"
],
"title": "VoiceRequest",
"type": "object"
}
},
"securitySchemes": {
@@ -8483,6 +8567,46 @@
]
}
},
"/api/model-resources/dashscope/voice": {
"post": {
"description": "Create/query a voice using draft settings and server-held credentials.",
"operationId": "manage_dashscope_voice_api_model_resources_dashscope_voice_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {}
}
},
"description": "Successful Response"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"summary": "Manage Dashscope Voice",
"tags": [
"model-registry"
]
}
},
"/api/model-resources/test": {
"post": {
"operationId": "test_new_model_resource_api_model_resources_test_post",