Skip to content

Memory Operations

Advanced tools for managing long-term memory and database states.

TIP

For simple variable storage within a single workflow run, use the Set Variable and Get Variable nodes in the Core library. These actions are for persistent, cross-session storage.

Database

SQL Query

Typememory.sql_query
DescriptionExecutes a raw SQL query against the agent's SQLite database.
InputsQuery (String)
OutputsResults (JSON String), Error (String)
Permissions⚠️ Direct database access. Use with caution.

Examples

  • sql_query(query="SELECT * FROM memories WHERE type = 'episodic' LIMIT 5")
Typememory.vector_search
DescriptionPerforms a semantic search against the vector database.
InputsQuery (String), Limit (Number, Optional)
OutputsMemories (Array<String>)

Examples

  • vector_search(query="What did we discuss about the project roadmap?", limit=3)

Delete Memory

Typememory.delete
DescriptionPermanently removes a memory by ID.
InputsMemory ID (String)
OutputsSuccess (Boolean)

Examples

  • delete_memory(id="mem_12345")