Skip to main content

GetSummaryTaskResult

Retrieves the result of a financial report summary 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

Authorization information

The following table describes the authorization information corresponding to this API. You can use it in the Action element of a RAM policy statement to grant a RAM user or RAM role the 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:
    • Required resource types are prefixed with an asterisk (*).
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Related operation: other permissions required to successfully perform the operation. The caller must also have the permissions of the related operations for the operation to succeed.
OperationAccess levelResource typeCondition keyRelated operation
dianjin:GetSummaryTaskResultget
*All Resources
*
    None
None

Request syntax

GET /{workspaceId}/api/task/summary/result HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
workspaceIdstringYes

Workspace ID

llm-xxxx
taskIdstringYes

Task ID

17071319

Response parameters

NameTypeDescriptionExample value
object

ResultCode

costlong

Time spent

null
dataobject

Response data

choicesarray<object>

Details of the content generated by the model.

choiceobject

Chat messages

finishReasonstring

Reason why the model stopped generating content.

stop
indexinteger

Sequence number of the generated result. Default is 0.

0
messageobject

Message output by the model.

contentstring

Text generated by the model.

### **Overview of operating performance for the reporting period**\nFor the three months ended March 31, 2024, the unaudited consolidated results showed strong growth.
rolestring

Role of the model. Always assistant.

assistant
toolCallsarray<object>

Tool calling

toolCallobject

Tool calling

null
createdlong

Creation time

1726285125915
idstring

System-generated ID that identifies this call.

1202
modelIdstring

Name of the model used in this call.

qwen-max
requestIdstring

Request ID

0bc13a9517168617617186457e401f
timestring

Time

2024-04-24 11:54:34
totalTokensinteger

Token count

300
usageobject

Token consumption

imageCountinteger

Number of images, for models such as wanx

0
imageTokensinteger

Image token count, for models such as qwen-vl

0
inputTokensinteger

Input token count

100
outputTokensinteger

Output token count

200
totalTokensinteger

Total token count

300
dataTypestring

Data type

null
errCodestring

Error code

0
messagestring

Error message

ok
requestIdstring

Request ID

0bc13a9517168617617186457e401f
successboolean

Whether the operation succeeded

true
timestring

Timestamp

2024-04-24 11:54:34

Examples

Normal response example JSON format
{
  "cost": 0,
  "data": {
    "choices": [
      {
        "finishReason": "stop",
        "index": 0,
        "message": {
          "content": "### **报告期经营业绩概述**\\n截至2024年3月31日止三个月的未经审核综合业绩显示强劲增长.",
          "role": "assistant",
          "toolCalls": [
            null
          ]
        }
      }
    ],
    "created": 1726285125915,
    "id": 1202,
    "modelId": "qwen-max",
    "requestId": "0bc13a9517168617617186457e401f",
    "time": "2024-04-24 11:54:34",
    "totalTokens": 300,
    "usage": {
      "imageCount": 0,
      "imageTokens": 0,
      "inputTokens": 100,
      "outputTokens": 200,
      "totalTokens": 300
    }
  },
  "dataType": null,
  "errCode": 0,
  "message": "ok",
  "requestId": "0bc13a9517168617617186457e401f",
  "success": true,
  "time": "2024-04-24 11:54:34"
}

Error codes

Visit the Error Center to view more error codes.