GetSmartAuditResult
Queries the result of an automated review.
Debug
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table lists the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles permission to call this API. Details are as follows:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the operation. Details are as follows:
- For required resource types, an asterisk (*) is added before them.
- For operations that do not support resource-level authorization,
全部资源is used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent action: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:GetSmartAuditResult | get | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| WorkspaceId | string | No | llm-xx | |
| TaskId | string | No | Task ID | 3f7045e099474ba28ceca1b4eb6d6e21 |
Response elements
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| RequestId | string | Id of the request | xxxxx |
| Success | boolean | Indicates whether the request was successful. | true |
| Code | string | Error code | DataNotExists |
| Message | string | Error message | Error message |
| HttpStatusCode | integer | HTTP error code | 400 |
| Data | object | The review result. | |
| Status | string | Task execution status. PENDING: pending, RUNNING: running, SUCCESSED: succeeded, SUSPENDED: suspended, FAILED: failed, CANCELLED: cancelled. | SUCCESSED |
| ErrorItemDetails | array<object> | The list of review error details. | |
| errorItemDetails | object | ||
| Context | string | The original text segment. | Original text segment |
| MajorCodeDesc | string | The description of the primary error. | Content accuracy |
| ErrorWord | string | The incorrect word. | ”xxx“ |
| MajorCode | string | The primary error code. | ContentAccuracy |
| RightWord | string | The suggested correction. | “xxx” |
| Reason | string | The error description. | Chinese double quotation marks must be used correctly in pairs: left double quotation mark first, then right double quotation mark |
| Url | string | In image review scenarios, the public URL of the accessible image that triggered the review. | http://www.example.com/xxxx.jpg |
| Offset | integer | The offset index of the incorrect word in the full text. | 0 |
| CheckId | string | The unique ID of the review item. | The unique ID of the review item. |
| SubClassCode | string | The sub-error code. | PunctuationError |
| ErrorLevel | integer | The error level (1: critical, 2: warning, 3: notice, 4: suggestion). | 2 |
| SubClassDesc | string | The description of the sub-error. | Punctuation error |
| ContextOffset | integer | The offset index of the incorrect word within the context. | 0 |
| ErrorMessage | string | When the final status is not SUCCESSED, read this error message to identify the error. | Review cancelled |
Examples
Success response
JSON format
{
"RequestId": "xxxxx",
"Success": true,
"Code": "DataNotExists",
"Message": "错误消息",
"HttpStatusCode": 400,
"Data": {
"Status": "SUCCESSED",
"ErrorItemDetails": [
{
"Context": "原文片段",
"MajorCodeDesc": "内容准确性",
"ErrorWord": "”xxx“",
"MajorCode": "ContentAccuracy",
"RightWord": "“xxx”",
"Reason": "中文双引号应成对正确使用,先左双引号,后右双引号",
"Url": "http://www.example.com/xxxx.jpg",
"Offset": 0,
"CheckId": "审核项唯一标识。\n\n",
"SubClassCode": "PunctuationError",
"ErrorLevel": 2,
"SubClassDesc": "标点符号错误\n",
"ContextOffset": 0
}
],
"ErrorMessage": "审核被取消"
}
}
Error codes
Visit the Error Center to view more error codes.