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 resourcesis 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.
| Operation | Access level | Resource type | Condition keyword | Related operation |
|---|---|---|---|---|
| dianjin:CreateAnnualDocSummaryTask | create | *All resources * |
| None |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Workspace ID | llm-xxxx |
| body | object | No | Request body. | |
| anaYears | array | Yes | List of years to analyze | |
| anaYear | integer | Yes | Year to analyze | 2023 |
| docInfos | array<object> | Yes | List of document information | |
| docInfo | object | No | Document information | |
| docId | string | Yes | Document ID | 198386463432 |
| docYear | integer | Yes | Document year | 2023 |
| endPage | integer | No | End page | 2 |
| libraryId | string | Yes | Document library ID | rdxrmo6amk |
| startPage | integer | No | Start page | 1 |
| enableTable | boolean | No | Whether to enable tables. Default value: true, which indicates that tables are enabled. | true |
| instruction | string | No | 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. |
| modelId | string | Yes | Model ID | qwen-plus |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | ResultCode | ||
| cost | long | Time consumed | null |
| data | string | Response data. It is the task ID. | 3284627354 |
| dataType | string | Data type | null |
| errCode | string | Error code | 0 |
| message | string | Error message | ok |
| requestId | string | Request ID | 32FFC91D-0A9F-585A-B84F-8A54C5187035 |
| success | boolean | Indicates whether the request is successful | true |
| time | string | Timestamp | 2024-01-01 00:00:00 |
Examples
Success response example
JSON format