All Products
Search
Document Center

Data Management:AssetAnswerSSE

Last Updated:Jul 16, 2026

Performs asset-related Q&A through the SSE interface of MetaAgent.

Operation description

Returns asset Q&A results in streaming mode based on Server-Sent Events (SSE). If DbId is specified, the Q&A is performed within the specified database (asset_answer_agent). If DbId is not specified, the Q&A is performed at the tenant level across all databases (tenant_answer_agent).

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST / HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

DbId

string

No

The database ID. This parameter is optional. If specified, the Q&A is performed within the specified database. If not specified, the Q&A is performed at the tenant level across all databases. You can call the ListDatabases operation to obtain the database ID.

78459741

Query

string

Yes

The natural language question from the user.

帮我找一下用户表

Model

string

No

The name of the model to use. Only Qwen series models are supported.

qwen-max

QueryId

string

No

The request ID for the current Q&A round. This value is used in the requestId field of SSE events.

test_001

SessionId

string

No

The session ID. This parameter is used to associate context across multiple conversation rounds.

48363552-225c-4c93-aeab-ea9b9d064b96

Response elements

Element

Type

Description

Example

object

The response is returned in SSE streaming format. Each line follows the format data: {json}\n\n. Normal streaming responses contain requestId/output. If RAM authentication fails, a standard POP error body is returned, which includes AccessDeniedDetail.

RequestId

string

The request ID.

7FAD400F-7A5C-4193-8F9A-39D86C4F0231

HostId

string

The host ID.

100.127.196.34

Code

string

The error code.

200

Message

string

The error message.

UnknownError

Recommend

string

Indicates whether the service is set as a recommended service and published to the service catalog.

true

AccessDeniedDetail

object

The details of the RAM authentication failure.

PolicyType

string

The policy type.

System

AuthPrincipalOwnerId

string

The owner ID of the authorized principal.

xx

EncodedDiagnosticMessage

string

The encoded full diagnostic message.

AQEAAAAAaJQJ5zhGNzBCNzFGLUJEODctNTAzQi1CNTUxLUMwODI2NzhFRDRERA==

AuthPrincipalType

string

The type of the authorized principal.

xx

AuthPrincipalDisplayName

string

The identity used for authentication in the request.

xx

NoPermissionType

string

The reason for the authentication failure.

xx

AuthAction

string

The API operation name.

xx

Data

any

The paginated results of table assets.

1001

ErrorCode

string

The error code.

200

ErrorMessage

string

The error message.

UnknownError

Success

boolean

Valid values:

  • true: The operation was successful.

  • false: The operation failed.

true

TraceId

string

The trace ID for tracking the service request.

0a06e1e316757357507896067d3780

Examples

Success response

JSON format

{
  "RequestId": "7FAD400F-7A5C-4193-8F9A-39D86C4F0231",
  "HostId": "100.127.196.34",
  "Code": "200",
  "Message": "UnknownError",
  "Recommend": "true",
  "AccessDeniedDetail": {
    "PolicyType": "System",
    "AuthPrincipalOwnerId": "xx",
    "EncodedDiagnosticMessage": "AQEAAAAAaJQJ5zhGNzBCNzFGLUJEODctNTAzQi1CNTUxLUMwODI2NzhFRDRERA==",
    "AuthPrincipalType": "xx",
    "AuthPrincipalDisplayName": "xx",
    "NoPermissionType": "xx",
    "AuthAction": "xx"
  },
  "Data": "1001",
  "ErrorCode": "200",
  "ErrorMessage": "UnknownError",
  "Success": true,
  "TraceId": "0a06e1e316757357507896067d3780"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.