GetTagMiningAnalysisTask
Retrieve the result of a tag mining analysis task.
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.
RAM authorization
The following table describes 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:
-
Action: 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:
- Required resource types are marked with a leading *.
- For operations that do not support resource-level authorization,
All resourcesis 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.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| quanmiaolightapp:GetTagMiningAnalysisTask | get | *All resources * |
| None |
Request syntax
GET /{workspaceId}/quanmiao/lightapp/getTagMiningAnalysisTask HTTP/1.1
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| taskId | string | No | Task ID | a3d1c2ac-f086-4a21-9069-f5631542f5a2 |
| workspaceId | string | No | llm-xx |
Response elements
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| code | string | Status code | successful |
| httpStatusCode | string | HTTP status code | 200 |
| data | object | Business response result | |
| results | array<object> | List of analysis results | |
| results | object | Analysis object | |
| payload | object | Payload object | |
| output | object | Output object | |
| text | string | Model response text | xxxx |
| usage | object | Usage | |
| inputToken | long | Input tokens | 100 |
| outputToken | long | Output tokens | 200 |
| totalToken | long | Total number of tokens | 300 |
| header | object | Response header information | |
| requestId | string | LLM request ID | 085BE2D2-BB7E-59A6-B688-F2CB32124E7F |
| event | string | Event | task-finished |
| errorCode | string | Error code | DataNotExists |
| errorMessage | string | Error message | Data does not exist |
| customId | string | Index | 1 |
| status | string | Task status. SUCCESSED=task executed successfully, FAILED=task execution failed, CANCELED=task canceled, PENDIN=task queued, SUSPENDE=task suspended, RUNNIN=task in progress | RUNNIN |
| errorCode | string | Task error code | Task error code |
| errorMessage | string | Task error message | Task error message |
| message | string | API error message | DataNotExists |
| requestId | string | requestId | 085BE2D2-BB7E-59A6-B688-F2CB32124E7F |
| success | boolean | Indicates whether the operation succeeded | true |
Examples
Success response
JSON format
{
"code": "successful",
"httpStatusCode": 200,
"data": {
"results": [
{
"payload": {
"output": {
"text": "xxxx"
},
"usage": {
"inputToken": 100,
"outputToken": 200,
"totalToken": 300
}
},
"header": {
"requestId": "085BE2D2-BB7E-59A6-B688-F2CB32124E7F",
"event": "task-finished",
"errorCode": "DataNotExists",
"errorMessage": "数据不存在"
},
"customId": 1
}
],
"status": "RUNNIN",
"errorCode": "任务错误Code\n\n",
"errorMessage": "任务错误消息\n\n"
},
"message": "DataNotExists",
"requestId": "085BE2D2-BB7E-59A6-B688-F2CB32124E7F",
"success": true
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action , Please check the assignment of the workspaceId. | Check the assignment of the workspaceId. |
Visit the Error Center to view more error codes.