Sim

Memory

Add memory store

Usage Instructions

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.

Tools

memory_add

Add a new memory to the database or append to existing memory with the same ID.

Input

ParameterTypeRequiredDescription
idstringYesIdentifier for the memory. If a memory with this ID already exists, the new data will be appended to it.
rolestringYesRole for agent memory (user, assistant, or system)
contentstringYesContent for agent memory

Output

ParameterTypeDescription
successbooleanWhether the memory was added successfully
memoriesarrayArray of memory objects including the new or updated memory
errorstringError message if operation failed

memory_get

Retrieve a specific memory by its ID

Input

ParameterTypeRequiredDescription
idstringYesIdentifier for the memory to retrieve

Output

ParameterTypeDescription
successbooleanWhether the memory was retrieved successfully
memoriesarrayArray of memory data for the requested ID
messagestringSuccess or error message
errorstringError message if operation failed

memory_get_all

Retrieve all memories from the database

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
successbooleanWhether all memories were retrieved successfully
memoriesarrayArray of all memory objects with keys, types, and data
messagestringSuccess or error message
errorstringError message if operation failed

memory_delete

Delete a specific memory by its ID

Input

ParameterTypeRequiredDescription
idstringYesIdentifier for the memory to delete

Output

ParameterTypeDescription
successbooleanWhether the memory was deleted successfully
messagestringSuccess or error message
errorstringError message if operation failed

Notes

  • Category: blocks
  • Type: memory
Memory