Query the execution status and results of async add-memory events
Queries an event generated by Add Memory Async to retrieve its execution status and extraction result.
Method and endpoint
GET https://dashscope.aliyuncs.com/api/v2/apps/memory/events/{event_id}
Request parameters
| Parameter | Type | Required | Location | Description |
|---|---|---|---|---|
event_id | string | Yes | Path | Event ID |
Response
| Field | Type | Description |
|---|---|---|
request_id | string | Request ID |
events | array | Events |
events[].created_at | integer | Creation time |
events[].event_id | string | Event ID |
events[].event_type | string | Event type |
events[].memory_library_id | string | Memory library ID |
events[].resource_id | string | Resource ID |
events[].resource_type | string | Resource type: observation, skill, user_profile, custom_observation, or custom_skill |
events[].status | string | Event status: PENDING, RUNNING, SUCCEEDED, FAILED, or UNRECORDED |
events[].updated_at | integer | Update time |
events[].user_id | string | Sub-user ID |
events[].result | array | Execution result. The extraction result is returned after the task succeeds |
events[].result[].memory_type | string | Memory type: observation, skill, or user_profile |
events[].result[].content | string | New content for ADD or UPDATE, and previous content for DELETE |
events[].result[].name | string | User profile attribute name. Returned only for applicable profile results |
events[].result[].event | string | Operation type: ADD, UPDATE, or DELETE |
events[].result[].memory_node_id | string | Memory node ID for observation or skill results. Not returned for user_profile results |
events[].result[].old_content | string | Previous content. Returned only when event is UPDATE |
Request example
cURL