RunBookSmartCard

Updated at:

A smart card interface for 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.

Debug

RAM authorization

The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:

  • Action: refers to the specific permission point.

  • Access level: refers to the access level of each operation. Valid values: Write, Read, or List.

  • Resource type: refers to the resource types that support authorization in the operation. Details are as follows:

    • For required resource types, an asterisk (*) is prefixed.
    • For operations that do not support resource-level authorization, 全部资源 is used.
  • Condition key: refers to the condition keys defined by the cloud service itself.

  • Dependent action: refers to the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.

ActionAccess levelResource typeCondition keyDependent action
aimiaobi:RunBookSmartCardget
*All resources
*
    None
None

Request syntax

POST /miaodu/stream/runBookSmartCard HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
WorkspaceIdstringYes

Unique identifier for the Alibaba Cloud Model Studio workspace. Obtain theWorkspace ID.

llm-xxx
DocIdstringYes

Document ID.

84ufBYEeLMZOjRFo84HJ7ySL3Efr55
SessionIdstringYes

Session ID.

3f7045e099474ba28ceca1b4eb6d6e21

Response elements

ElementTypeDescriptionExample
object

Schema of Response

RequestIdstring

Id of the request

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Headerobject

Response header.

ErrorCodestring

Error code.

success
ErrorMessagestring

Error message.

success
Eventstring

Event type.

finished
EventInfostring

Event description.

Model generation event
SessionIdstring

Session ID.

3f7045e099474ba28ceca1b4eb6d6e21
TaskIdstring

Task ID.

3f7045e099474ba28ceca1b4eb6d6e21
TraceIdstring

Trace ID.

1a0e898717105546647125853d4f54
Payloadobject

Response body.

Outputobject

Output content object.

Contentstring

Card title.

Card title content
Tagsarray

Card tag array.

tagsstring

Card tag.

Card tag content
Usageobject

Token usage.

InputTokenslong

Number of input tokens.

1
OutputTokenslong

Number of output tokens used.

100
TotalTokenslong

Total number of tokens.

101

Examples

Success response

JSON format

{
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Header": {
    "ErrorCode": "success",
    "ErrorMessage": "success",
    "Event": "finished",
    "EventInfo": "模型生成事件",
    "SessionId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "TraceId": "1a0e898717105546647125853d4f54"
  },
  "Payload": {
    "Output": {
      "Content": "卡片标题内容",
      "Tags": [
        "卡片标签内容"
      ]
    },
    "Usage": {
      "InputTokens": 1,
      "OutputTokens": 100,
      "TotalTokens": 101
    }
  }
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissionYou are not authorized to perform this action.Please check the workspaceId assignment

Visit the Error Center to view more error codes.