Skip to main content

CreateAnnualDocSummaryTask

Create a task to summarize documents by year.

Operation description

Make sure that you fully understand the billing methods and pricing of Tongyi Dianjin before you use this operation. Prerequisites Alibaba Cloud Model Studio and Tongyi Dianjin are activated. Obtain the workspaceId: Obtain the workspace identifier.

Debug

You can directly run this API 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 lists the authorization information of this API, which can be used in the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API. Details:
  • Operation: the specific permission point.
  • Access level: the access level of each operation. Valid values: Write, Read, and List.
  • Resource type: the resource types supported for authorization in the operation. Details:
    • For required resource types, the prefix * is added.
    • For operations that do not support resource-level authorization, All resources is used.
  • Condition keyword: the condition keywords defined by the cloud product itself.
  • Related operation: other permissions required to successfully execute the operation. The caller must have the permissions of the related operations to succeed.
OperationAccess levelResource typeCondition keywordRelated operation
dianjin:CreateAnnualDocSummaryTaskcreate
*All resources
*
    None
None

Request syntax

POST /{workspaceId}/api/task/summary/doc/annual HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
workspaceIdstringYes

Workspace ID

llm-xxxx
bodyobjectNo

Request body.

anaYearsarrayYes

List of years to analyze

anaYearintegerYes

Year to analyze

2023
docInfosarray<object>Yes

List of document information

docInfoobjectNo

Document information

docIdstringYes

Document ID

198386463432
docYearintegerYes

Document year

2023
endPageintegerNo

End page

2
libraryIdstringYes

Document library ID

rdxrmo6amk
startPageintegerNo

Start page

1
enableTablebooleanNo

Whether to enable tables. Default value: true, which indicates that tables are enabled.

true
instructionstringNo

Instruction

You are a senior securities researcher, performing performance analysis on listed companies for year xx. Based on the reference information, analyze in detail from the following aspects: 1. Overall performance changes, including detailed changes in indicators such as revenue and profit 2. Specific reasons for the performance changes, including changes in each business. Strictly output only the situation of year xx.
modelIdstringYes

Model ID

qwen-plus

Response elements

ElementTypeDescriptionExample
object

ResultCode

costlong

Time consumed

null
datastring

Response data. It is the task ID.

3284627354
dataTypestring

Data type

null
errCodestring

Error code

0
messagestring

Error message

ok
requestIdstring

Request ID

32FFC91D-0A9F-585A-B84F-8A54C5187035
successboolean

Indicates whether the request is successful

true
timestring

Timestamp

2024-01-01 00:00:00

Examples

Success response example JSON format
{
  "cost": 0,
  "data": 3284627354,
  "dataType": null,
  "errCode": 0,
  "message": "ok",
  "requestId": "32FFC91D-0A9F-585A-B84F-8A54C5187035",
  "success": true,
  "time": "2024-01-01 00:00:00"
}

Error codes

Visit the Error Center to view more error codes.