Skip to main content

RunBookBrainmap

Miaodu generates mind maps of books.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.

Authorization information

The following table describes the authorization information for this API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details:
  • Action: the specific permission point.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization in the operation. Details:
    • Required resource types are marked with a leading asterisk (*).
    • For operations that do not support resource-level authorization, All resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent action: the other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent actions for the operation to succeed.

Action

Access level

Resource type

Condition key

Dependent action

aimiaobi:RunBookBrainmap

get

*All Resources

*

NoneNone

Request syntax

POST /miaodu/stream/runBookBrainmap HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

WorkspaceId

string

Yes

The unique identifier of the Alibaba Cloud Model Studio workspace: obtain the Workspace ID

llm-hx72jf15gqyobvd9

SessionId

string

Yes

The session ID.

3f7045e099474ba28ceca1b4eb6d6e21

DocId

string

Yes

The document ID

12345

Prompt

string

No

A prompt with additional requirements

Output in English

CleanCache

boolean

No

Specifies whether to clear the previous cache

true

NodeNumber

integer

No

The number of nodes at the second level

3

WordNumber

integer

No

The number of words in the node text

20

ResponseFormat

integer

No

0

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

3f7045e099474ba28ceca1b4eb6d6e21

Header

object

The response header

ErrorCode

string

The error code

Success

ErrorMessage

string

The error message

success

Event

string

The event type

task-failed

EventInfo

string

The event description

Model generation event

SessionId

string

The session ID

3cd10828-0e42-471c-8f1a-931cde20b035

TaskId

string

The task ID

3f7045e099474ba28ceca1b4eb6d6e21

TraceId

string

The trace ID

0bc1409b17210096103458421ec62e

Payload

object

The response payload

Output

object

The output content object

Content

string

The mind map content

{"xxxx":"xxx"}

Usage

object

Token usage

InputTokens

integer

The input token count

100

OutputTokens

integer

The output token count

100

TotalTokens

integer

The total token count

200

Examples

Success response JSON format
{
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
  "Header": {
    "ErrorCode": "Success",
    "ErrorMessage": "success",
    "Event": "task-failed",
    "EventInfo": "模型生成事件",
    "SessionId": "3cd10828-0e42-471c-8f1a-931cde20b035",
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "TraceId": "0bc1409b17210096103458421ec62e"
  },
  "Payload": {
    "Output": {
      "Content": "{\"xxxx\":\"xxx\"}"
    },
    "Usage": {
      "InputTokens": 100,
      "OutputTokens": 100,
      "TotalTokens": 200
    }
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403NoPermissionYou are not authorized to perform this action.Please check the workspaceId assignment
Visit the Error Center to view more error codes.

Release notes

For more information, see Change details.