RunBookIntroduction
Extracts a summary, structured selling points, and hotwords from a book.
Try it now
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
RAM authorization
The table below describes the authorization information of this API. You can use it in the Action element of RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Action: the specific permission point.
-
Access level: the access level of each action. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the action. Details are as follows:
- Required resource types are marked with a leading asterisk (*).
- For actions that do not support resource-level authorization,
All Resourcesis used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent action: other permissions required to successfully perform the action. The caller must also have the permissions of the dependent actions for the action to succeed.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
aimiaobi:RunBookIntroduction | get | *All Resource
| None | None |
Request syntax
POST /miaodu/stream/runBookIntroduction HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | The unique ID of the workspace in Model Studio (Bailian). For more information, see Get your workspace ID. | llm-vtmox6g2bhq2qv5c |
| DocId | string | Yes | The document ID. | 3YQRatoe8phnpIsIE6z7DTPknhG8Fj |
| SessionId | string | Yes | The session ID. | 0f56f98a-f2d8-47ec-98e9-1cbdcffa9539 |
| SummaryPrompt | string | No | A custom prompt for generating the summary. | Output in English |
| KeyPointPrompt | string | No | A custom prompt for extracting key points. | Output in English |
| CleanCache | boolean | No | true |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | The response schema. | ||
| RequestId | string | The request ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| Header | object | The response header. | |
| ErrorCode | string | The error code. | success |
| ErrorMessage | string | The error message. | success |
| Event | string | The event type. | finished |
| EventInfo | string | The event description. | Model generation event |
| SessionId | string | The session ID. | 411c4dfa-2168-4379-a902-675d67f453f8 |
| TaskId | string | The task ID. | d3be9981-ca2d-4e17-bf31-1c0a628e9f99 |
| TraceId | string | The trace ID. | 46e5c2b5-0877-4f09-bd91-ab0cf314e48b |
| Payload | object | The payload. | |
| Output | object | The generated content. | |
| Summary | string | The book summary. | Summary content |
| KeyPoint | string | The book's key points. | Key point content |
| Introductions | array<object> | ||
array<object> | |||
| Summary | string | Summary of this section | |
| Title | string | Title of this section | |
| Blocks | array<object> | ||
object | |||
| Height | integer | 600 | |
| PageId | integer | 10 | |
| Width | integer | 600 | |
| X | integer | 10 | |
| Y | integer | 10 | |
| BeginTime | integer | 0 | |
| EndTime | integer | 1200 | |
| Usage | object | Token usage details for the request. | |
| InputTokens | integer | The number of input tokens. | 100 |
| OutputTokens | integer | The number of output tokens. | 100 |
| TotalTokens | integer | The total number of tokens. | 200 |
Examples
Success response
JSON format
{
"RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
"Header": {
"ErrorCode": "success",
"ErrorMessage": "success",
"Event": "finished",
"EventInfo": "模型生成事件",
"SessionId": "411c4dfa-2168-4379-a902-675d67f453f8",
"TaskId": "d3be9981-ca2d-4e17-bf31-1c0a628e9f99",
"TraceId": "46e5c2b5-0877-4f09-bd91-ab0cf314e48b"
},
"Payload": {
"Output": {
"Summary": "简介内容",
"KeyPoint": "卖点内容",
"Introductions": [
{
"Summary": "本段摘要内容",
"Title": "本段标题内容",
"Blocks": [
{
"Height": 600,
"PageId": 10,
"Width": 600,
"X": 10,
"Y": 10,
"BeginTime": 0,
"EndTime": 1200
}
]
}
]
},
"Usage": {
"InputTokens": 100,
"OutputTokens": 100,
"TotalTokens": 200
}
}
}
Error codes
HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action. | Please check the workspaceId assignment |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.