This topic describes the syntax and examples of the Tongyi ZoneWit API for summary generation.
Request syntax
Request parameters
Name | Type | Required | Description | Example |
|---|---|---|---|---|
capabilityType | string | Yes | The capability type. Summary generation: SUMMARY_GEN | SUMMARY_GEN |
userPrompt | string | Yes | The prompt. | You are an AI assistant that specializes in Named Entity Recognition (NER). Your task is to accurately extract all person names, place names, and organization names from the given text and organize them in the specified dictionary format. |
fileIdList | array | Yes | A list of document IDs. | [ "file_zhiwen_XXX" ] |
stream | boolean | Yes | Specifies whether to return the response in a streaming format. | true |
Response parameters
Name | Type | Description |
|---|---|---|
output | object | |
-choices | array | |
-finishReason | string | Termination Reason |
-message | object | The message body. |
-role | string | The role. |
-content | string | The message content. |
requestId | string | The request ID. |
usage | object | The token usage information. |
-inputTokens | int | The number of input tokens. |
-outputTokens | int | The number of output tokens. |
-totalTokens | int | The total number of tokens. |
Examples
Call examples
Successful response example
JSON format