輪詢自然語言查詢結果。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eventbridge:PollAskResult |
get |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| AgentName |
string |
是 |
Agent 名稱。 |
demo-luma-agent |
| MessageId |
string |
是 |
訊息 ID。 |
msg_xxx |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Message |
string |
錯誤說明。 |
Agent with name 'xxx' not found for account 1186xxx |
| RequestId |
string |
阿里雲為該請求產生的唯一識別碼。 |
A995F07C-E503-XXXXXX-9CECA8566876 |
| Data | AskLumaResult |
回傳資料。 |
true |
| Code |
string |
介面回傳碼:Success:表示成功。 其它:表示錯誤碼。錯誤碼詳情,請參見錯誤碼。 |
Success |
| Success |
boolean |
操作成功時回傳 true。 |
true |
樣本
正常返回樣本
JSON格式
{
"Message": "Agent with name 'xxx' not found for account 1186xxx",
"RequestId": "A995F07C-E503-XXXXXX-9CECA8566876",
"Data": {
"MessageId": "msg_xxx",
"ConversationId": "conv_xxx",
"Status": "RUNNING, SUCCEEDED, FAILED, TIMEOUT",
"Content": {
"TextAttachments": [
"\"**top 5 城市**: 北京(120)...\""
],
"QueryAttachments": [
{
"Query": "\"SELECT city, COUNT(*) AS cnt FROM events GROUP BY city\"",
"Result": {
"Schema": [
{
"Name": "name",
"Type": "VARCHAR"
}
],
"Rows": "[[\"北京\",120],[\"上海\",98]] ",
"RowCount": 2,
"TotalRows": 2,
"IsTruncated": false
}
}
],
"MessageAttachments": [
{
"Id": "msg_123456_a1b2c3d4",
"Role": "assistant",
"Content": "根据您的问题,我将查询过去7天的事件量...",
"Metadata": {
"Attachments": {
"Name": "acs:eventbridge:cn-hangzhou:12345:eventhouse/system-rocketmq/namespace/rmq-cn-xxx/table/order",
"Type": "inner-resource/event-table"
}
},
"ToolCallId": "call_xxx",
"ToolCalls": [
{
"Id": "call_xxx",
"Type": "function",
"Function": {
"Name": "discoverMetadata",
"Arguments": "{}"
}
}
],
"Reasoning": ""
}
]
},
"IsError": false,
"ErrorCode": "ExecutionFailed, Timeout, RateLimited, InternalError, ConversationExpired",
"ErrorMessage": "Agent with name 'xxx' not found for account 1186xxx",
"StorageTruncated": true,
"ClarificationNeeded": false,
"ClarificationQuestion": "您指的是哪个数据库中的员工表?",
"Constraints": {
"BeginTime": 1717200000000,
"EndTime": 1717200000000
}
},
"Code": "Success",
"Success": true
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。