Creates a financial report summary.
Operation description
Make sure that you fully understand the billing methods and pricing of Tongyi Dianjin before you use this API.
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:CreateFinReportSummaryTask | create | *All resources * |
| None |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Workspace ID | llm-xxxxx |
| body | object | No | Request body parameters | |
| docId | string | Yes | Document ID | 123 |
| enableTable | boolean | Yes | Whether to enable tables | true |
| endPage | integer | No | End page | 10 |
| instruction | string | No | Instruction | Please help me summarize this document. |
| libraryId | string | Yes | Document library ID | 3akzl28vap |
| modelId | string | Yes | Model ID | qwen-max |
| startPage | integer | No | Start page | 1 |
| taskType | string | No | Task type. Optional. Defaults to finance_report. When you set this parameter to custom, you must specify instruction | custom |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | ResultCode | ||
| cost | long | Time consumed | null |
| data | string | Response data, which is the task ID. Used to query the task status and results later. | 3284627354 |
| dataType | string | Data type | null |
| errCode | string | Error code | 0 |
| message | string | Error message | ok |
| requestId | string | Request ID | 5E3FBAF1-17AF-53B7-AF0A-CDCEEB6DE658 |
| success | boolean | Indicates whether the request is successful | true |
| time | string | Timestamp | 2024-04-24 11:54:34 |
Examples
Success response example
JSON format