GetTagMiningAnalysisTask

Updated at:

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.

Debug

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 resources 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.

ActionAccess levelResource typeCondition keyDependent action
quanmiaolightapp:GetTagMiningAnalysisTaskget
*All resources
*
    None
None

Request syntax

GET /{workspaceId}/quanmiao/lightapp/getTagMiningAnalysisTask HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
taskIdstringNo

Task ID

a3d1c2ac-f086-4a21-9069-f5631542f5a2
workspaceIdstringNollm-xx

Response elements

NameTypeDescriptionExample value
object

Schema of Response

codestring

Status code

successful
httpStatusCodestring

HTTP status code

200
dataobject

Business response result

resultsarray<object>

List of analysis results

resultsobject

Analysis object

payloadobject

Payload object

outputobject

Output object

textstring

Model response text

xxxx
usageobject

Usage

inputTokenlong

Input tokens

100
outputTokenlong

Output tokens

200
totalTokenlong

Total number of tokens

300
headerobject

Response header information

requestIdstring

LLM request ID

085BE2D2-BB7E-59A6-B688-F2CB32124E7F
eventstring

Event

task-finished
errorCodestring

Error code

DataNotExists
errorMessagestring

Error message

Data does not exist
customIdstring

Index

1
statusstring

Task status. SUCCESSED=task executed successfully, FAILED=task execution failed, CANCELED=task canceled, PENDIN=task queued, SUSPENDE=task suspended, RUNNIN=task in progress

RUNNIN
errorCodestring

Task error code

Task error code
errorMessagestring

Task error message

Task error message
messagestring

API error message

DataNotExists
requestIdstring

requestId

085BE2D2-BB7E-59A6-B688-F2CB32124E7F
successboolean

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 codeError codeError messageDescription
403NoPermissionYou 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.