cURL
Queries the execution status and results of events generated by Add Memory Async.
Replace
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
event_id | string | Yes | Event ID (path parameter) |
Response
| Field | Type | Description |
|---|---|---|
request_id | string | Request ID |
events | array | Event list |
events[].event_id | string | Event ID |
events[].event_type | string | Event type, for example ADD_ASYNC |
events[].resource_type | string | Task source type: observation / skill / profile |
events[].resource_id | string | Task source ID |
events[].memory_library_id | string | Memory library ID of the task |
events[].user_id | string | Memory entity ID of the task |
events[].status | string | Task status: PENDING / SUCCEEDED / FAILED / UNRECORDED |
events[].created_at | integer | Task creation timestamp |
events[].updated_at | integer | Timestamp of the last task status update |
events[].result | array | Execution result, appears after status becomes SUCCEEDED |
events[].result[].memory_type | string | Memory type: observation / skill / user_profile |
events[].result[].content | string | The added content when event is ADD, the new content when UPDATE, the old content when DELETE |
events[].result[].event | string | Operation type: ADD / UPDATE / DELETE |
events[].result[].memory_node_id | string | Memory node ID. Not present when memory_type is user_profile |
events[].result[].old_content | string | Content before update, only present when event is UPDATE |
Code examples
Replace {workspaceId} with your actual workspace ID.
cURL