GetMemoryTask - 查询记忆抽取任务
查询异步 AddMemories 返回的 taskId。
接口说明
查询异步 AddMemories 返回的 taskId。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
agentcore:GetMemoryTask |
get |
*MemoryStore
|
无 | 无 |
请求语法
GET /workspaces/{workspaceId}/memorystores/{memoryStoreName}/memory-tasks/{taskId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| workspaceId |
string |
是 |
AgentCore 工作空间 ID |
ws-2f5f9c5a8d0e4c3b |
| memoryStoreName |
string |
是 |
MemoryStore 名称 |
customer-memory |
| taskId |
string |
是 |
AddMemories 返回的任务 ID |
task-2f5f9c5a8d0e4c3b |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| code |
string |
业务状态码 |
SUCCESS |
| data |
object |
任务详情 |
|
| error |
object |
仅 FAILED、UNKNOWN 返回的任务错误;不代表本次查询失败 |
|
| code |
string |
任务错误码 |
UnknownError |
| message |
string |
任务错误信息 |
Memory extraction failed. |
| memories |
array<object> |
仅 SUCCEEDED 返回,允许空数组 |
|
|
object |
|||
| memoryId |
string |
长期记忆 ID |
mem-2f5f9c5a8d0e4c3b |
| status |
string |
抽取任务状态 |
SUCCEEDED |
| taskId |
string |
任务 ID |
task-2f5f9c5a8d0e4c3b |
| httpStatusCode |
integer |
HTTP 状态码 |
200 |
| message |
string |
响应消息 |
success |
| requestId |
string |
请求 ID |
01A00000-0000-0000-0000-000000000001 |
| success |
boolean |
请求是否成功 |
示例
正常返回示例
JSON格式
{
"code": "SUCCESS",
"data": {
"error": {
"code": "UnknownError",
"message": "Memory extraction failed."
},
"memories": [
{
"memoryId": "mem-2f5f9c5a8d0e4c3b"
}
],
"status": "SUCCEEDED",
"taskId": "task-2f5f9c5a8d0e4c3b"
},
"httpStatusCode": 200,
"message": "success",
"requestId": "01A00000-0000-0000-0000-000000000001",
"success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified request parameter is invalid. | |
| 500 | UnknownError | The request processing has failed due to some unknown error. | |
| 404 | Resource.NotFound | The specified memory store does not exist. | |
| 429 | Throttling | Request was denied due to request throttling. | |
| 409 | Operation.Conflict | The memory store is not in a state that permits this operation. | |
| 409 | Resource.OperationConflict | The memory task cannot be queried in its current state. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。