PollAskResult - 轮训AskLuma执行结果
更新时间:
复制 MD 格式
轮询自然语言查询结果
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eventbridge:PollAskResult |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| 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": "{}"
}
}
]
}
]
},
"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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?