Create persistent storage for data that needs to be accessed across multiple workflow steps. Store and retrieve information throughout your workflow execution to maintain context and state.
Add a new memory to the database or append to existing memory with the same ID.
Parameter | Type | Required | Description |
---|
id | string | Yes | Identifier for the memory. If a memory with this ID already exists, the new data will be appended to it. |
role | string | Yes | Role for agent memory (user, assistant, or system) |
content | string | Yes | Content for agent memory |
Parameter | Type | Description |
---|
success | boolean | Whether the memory was added successfully |
memories | array | Array of memory objects including the new or updated memory |
error | string | Error message if operation failed |
Retrieve a specific memory by its ID
Parameter | Type | Required | Description |
---|
id | string | Yes | Identifier for the memory to retrieve |
Parameter | Type | Description |
---|
success | boolean | Whether the memory was retrieved successfully |
memories | array | Array of memory data for the requested ID |
message | string | Success or error message |
error | string | Error message if operation failed |
Retrieve all memories from the database
Parameter | Type | Required | Description |
---|
Parameter | Type | Description |
---|
success | boolean | Whether all memories were retrieved successfully |
memories | array | Array of all memory objects with keys, types, and data |
message | string | Success or error message |
error | string | Error message if operation failed |
Delete a specific memory by its ID
Parameter | Type | Required | Description |
---|
id | string | Yes | Identifier for the memory to delete |
Parameter | Type | Description |
---|
success | boolean | Whether the memory was deleted successfully |
message | string | Success or error message |
error | string | Error message if operation failed |
- Category:
blocks
- Type:
memory