获取Agent任务结果
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
sca:GetAgentTaskResult |
none |
*全部资源
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| JsonStr |
string |
否 |
完整 JSON 字符串信息,具体内容参见以下详细信息。 |
{\"vid\":\"sip-11-1766561862.293393\",\"taskId\":\"20251224-D3B32484-2D53-5B53-A618-483A7941029E\"} |
| BaseMeAgentId |
string |
否 |
业务空间 Id |
123456 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
F190ADE9-619A-447D-84E3-7E241A5C428E |
| Code |
string |
状态码,200 表示正常 |
200 |
| Message |
string |
错误的时候,返回错误信息 |
successful |
| Success |
string |
请求是否成功。调用方可根据此字段来判断请求是否成功:
|
true |
| Data |
object |
返回结果 |
|
| TaskId |
string |
任务 ID。 |
A6BEC8D-9A5B-4BE5-8432-4F635E*** |
| Vid |
string |
会话 ID。 |
6fa76916-3ce6-45d8-ac64-01b7f31*** |
| Status |
string |
1:待执行,2:运行中,3:成功,4:失败 |
1 |
| ErrorMessage |
string |
||
| Response |
object |
计算任务的结果 |
|
| FieldResponse |
object |
属性抽取结果 |
|
| FieldVoList |
array<object> |
属性列表 |
|
|
object |
属性 |
||
| Name |
string |
属性名称 |
phone |
| Value |
string |
属性值 |
1234561 |
| Remarks |
string |
判断理由 |
通过客服第一句话判断 |
| OriginalUtterances |
array |
判断理由引用的句子 |
|
|
integer |
判断理由引用的句子序号 |
1 |
|
| TagCategoryResponse |
object |
标签分类返回结果 |
|
| TagCategoryVoList |
array<object> |
标签列表 |
|
|
object |
标签 |
||
| Dimension |
string |
标签维度 |
客户意图 |
| IsMatch |
boolean |
是否匹配 |
true |
| ResultLabels |
array |
命中标签列表 |
|
|
string |
命中标签 |
退货 |
|
| Remarks |
string |
判断理由 |
通过客服第一句话判断 |
| OriginalUtterances |
array |
判断理由引用的句子 |
|
|
string |
判断理由引用的句子序号 |
1 |
|
| ServiceInspectionResponse |
object |
服务质检返回结果 |
|
| ServiceInspectionVoList |
array<object> |
质检项列表 |
|
|
object |
质检项 |
||
| Dimension |
string |
质检维度 |
服务态度 |
| IsMatch |
boolean |
是否匹配 |
true |
| Remarks |
string |
判断理由 |
通过客服第一句话判断 |
| OriginalUtterances |
array |
判断理由引用的句子 |
|
|
string |
判断理由引用的句子序号 |
1 |
|
| CustomerPromptResponse |
object |
自定义指令的返回结果 |
|
| Text |
string |
大模型返回的结果。 |
175/xl面料摸着很舒服,穿起来看着也挺修身的挺好的好衣服超好看,质量手感没得说一级棒,很满意的一次购物。 |
| VoiceprintResponse |
object |
||
| Dialogue |
array<object> |
||
|
array<object> |
|||
| Words |
string |
||
| Begin |
integer |
||
| End |
integer |
||
| Additions |
object |
||
| Speaker |
string |
||
| IsKnownVoiceprint |
boolean |
||
| BestVoiceprintScore |
number |
||
| Gender |
string |
||
| GenderScore |
number |
||
| Age |
string |
||
| AgeGroup |
string |
||
| AgeScore |
number |
||
| Emotion |
string |
||
| EmotionScore |
number |
||
| Errors |
array<object> |
||
|
object |
|||
| Code |
string |
||
| Message |
string |
||
| LlmRequestId |
string |
大模型服务返回的 requestId |
106C6CA0-282D-4AF7-85F0-D2D24*** |
| InputTokens |
string |
输入 Token 数量 |
100 |
| OutputTokens |
string |
输出 Token 数量 |
200 |
| TotalTokens |
string |
总 Token 数量 |
300 |
| TyxmTurboCount |
string |
turbo 模型使用次数 |
1 |
| TyxmPlusCount |
string |
plus 模型使用次数 |
1 |
| Dialogues |
array<object> |
||
|
object |
|||
| Words |
string |
||
| Begin |
integer |
||
| EmotionValue |
integer |
||
| End |
integer |
||
| SpeechRate |
integer |
||
| Role |
string |
||
| HourMinSec |
string |
示例
正常返回示例
JSON格式
{
"RequestId": "F190ADE9-619A-447D-84E3-7E241A5C428E",
"Code": "200",
"Message": "successful",
"Success": "true",
"Data": {
"TaskId": "A6BEC8D-9A5B-4BE5-8432-4F635E***",
"Vid": "6fa76916-3ce6-45d8-ac64-01b7f31***",
"Status": "1",
"ErrorMessage": "",
"Response": {
"FieldResponse": {
"FieldVoList": [
{
"Name": "phone",
"Value": "1234561",
"Remarks": "通过客服第一句话判断",
"OriginalUtterances": [
1
]
}
]
},
"TagCategoryResponse": {
"TagCategoryVoList": [
{
"Dimension": "客户意图",
"IsMatch": true,
"ResultLabels": [
"退货"
],
"Remarks": "通过客服第一句话判断",
"OriginalUtterances": [
"1"
]
}
]
},
"ServiceInspectionResponse": {
"ServiceInspectionVoList": [
{
"Dimension": "服务态度",
"IsMatch": true,
"Remarks": "通过客服第一句话判断",
"OriginalUtterances": [
"1"
]
}
]
},
"CustomerPromptResponse": {
"Text": "175/xl面料摸着很舒服,穿起来看着也挺修身的挺好的好衣服超好看,质量手感没得说一级棒,很满意的一次购物。"
},
"VoiceprintResponse": {
"Dialogue": [
{
"Words": "",
"Begin": 0,
"End": 0,
"Additions": {
"Speaker": "",
"IsKnownVoiceprint": true,
"BestVoiceprintScore": 0,
"Gender": "",
"GenderScore": 0,
"Age": "",
"AgeGroup": "",
"AgeScore": 0,
"Emotion": "",
"EmotionScore": 0
}
}
],
"Errors": [
{
"Code": "",
"Message": ""
}
]
}
},
"LlmRequestId": "106C6CA0-282D-4AF7-85F0-D2D24***",
"InputTokens": "100",
"OutputTokens": "200",
"TotalTokens": "300",
"TyxmTurboCount": "1",
"TyxmPlusCount": "1",
"Dialogues": [
{
"Words": "",
"Begin": 0,
"EmotionValue": 0,
"End": 0,
"SpeechRate": 0,
"Role": "",
"HourMinSec": ""
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。