RunCustomHotTopicAnalysis

Updated at:

Analyzes custom hot topics.

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.

Try it now

Authorization information

The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant RAM users or RAM roles the permission to call this API. For more information, see the following:

  • 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. For more information, see the following:

    • Required resource types are marked with a leading *.
    • 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 have the permissions of the dependent actions at the same time for the operation to succeed.

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

Request syntax

POST /quanmiao/miaoce/runCustomHotTopicAnalysis HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
WorkspaceIdstringYes

The unique ID of the Alibaba Cloud Model Studio workspace. For more information, see Workspace ID.

xxxx
AskUserstringNo

The follow-up question from the model.

Model follow-up question
UserBackstringNo

The user's input in response to the model's follow-up question.

User input in response to model's follow-up question
PromptstringYes

The user's input prompt.

User input prompt
ForceAnalysisExistsTopicbooleanNo

Specifies whether to forcibly analyze a duplicate topic and overwrite the existing analysis.

false
SessionIdstringNo

The unique ID for each request.

3f7045e099474ba28ceca1b4eb6d6e21
TaskIdstringNo

The unique ID for the entire conversation task.

Note TaskId is not required by default. The system automatically generates it. If subsequent tasks use the same TaskId, the tasks belong to the same conversation group.
3f7045e099474ba28ceca1b4eb6d6e21

Response elements

NameTypeDescriptionExample value
object

CustomHoTTopicBaseLlmResponse

Headerobject

The response header.

ErrorCodestring

The error code.

Error code
ErrorMessagestring

The error message.

Error message
Eventstring

The Server-Sent Events (SSE) event. Valid values: task-started: The task starts. task-finished: The task is complete. task-failed: The task failed.

task-started
OriginSessionIdstring

The parent session ID.

3f7045e099474ba28ceca1b4eb6d6e21
SessionIdstring

The session ID.

3f7045e099474ba28ceca1b4eb6d6e21
TaskIdstring

The task ID.

3f7045e099474ba28ceca1b4eb6d6e21
TraceIdstring

The trace ID.

Trace ID
Payloadobject

The response body.

Outputobject

The output.

Articlesarray<object>

The reference articles.

Articleobject

The article object.

Authorstring

The author.

Author
Contentstring

The content.

Article content
DocIdstring

The custom unique ID of the document.

doc-custom-unique-id
DocUuidstring

The internal unique ID of the document.

a2103fcfbd5441f1991c72f8834833e3
PubTimestring

The publication time.

2024-08-27 14:50:47
Sourcestring

The source.

CCTV
Summarystring

The article summary.

Article summary
Tagstring

The tag.

Article tag
Titlestring

The title.

Article title
Urlstring

The URL of the article.

https://www.example.com/aaa.docx
AskUserarray

The list of follow-up questions.

AskUserstring

The follow-up question from the model.

xxx
AsyncTaskIdstring

The ID of the asynchronous task.

Asynchronous task ID
Attitudestring

The custom perspective for topic selection.

Custom topic selection perspective
SearchQuerystring

The rewritten query.

Large models are changing the world
Textstring

The text generation result.

Text generation result
TopicIdstring

The topic ID.

Topic ID
Usageobject

The token usage.

InputTokenslong

The number of tokens used for the input.

60
OutputTokenslong

The number of tokens for the output.

13
TotalTokenslong

The total number of tokens.

73
RequestIdstring

The request ID.

3f7045e099474ba28ceca1b4eb6d6e21

Examples

Success response

JSON format

{
  "Header": {
    "ErrorCode": "错误码",
    "ErrorMessage": "错误信息",
    "Event": "task-started",
    "OriginSessionId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "SessionId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "TraceId": "全链路ID"
  },
  "Payload": {
    "Output": {
      "Articles": [
        {
          "Author": "作者",
          "Content": "文章内容",
          "DocId": "文档-自定义的唯一ID",
          "DocUuid": "a2103fcfbd5441f1991c72f8834833e3",
          "PubTime": "2024-08-27 14:50:47",
          "Source": "央视网",
          "Summary": "文章摘要",
          "Tag": "文章标签",
          "Title": "文章标题",
          "Url": "https://www.example.com/aaa.docx"
        }
      ],
      "AskUser": [
        "xxx"
      ],
      "AsyncTaskId": "异步任务ID",
      "Attitude": "自定义选题视角",
      "SearchQuery": "大模型改变世界",
      "Text": "文本生成结果",
      "TopicId": "话题ID"
    },
    "Usage": {
      "InputTokens": 60,
      "OutputTokens": 13,
      "TotalTokens": 73
    }
  },
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21"
}

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.