Skip to main content
The MemoryTools toolkit enables Agents to manage user memories through create, update, and delete operations. This toolkit integrates with a provided database where memories are stored. The toolkit implements a “Think → Operate → Analyze” cycle that allows an Agent to:
  1. Think through memory management requirements and plan operations
  2. Execute memory operations (add, update, delete) on the database
  3. Analyze the results to ensure operations completed successfully and meet requirements
This approach gives Agents the ability to persistently store, retrieve, and manage user information, preferences, and context across conversations. The toolkit includes the following tools:
  • think: A scratchpad for planning memory operations, brainstorming content, and refining approaches. These thoughts remain internal to the Agent and are not shown to users.
  • get_memories: Gets a list of memories for the current user from the database.
  • add_memory: Creates new memories in the database with specified content and optional topics.
  • update_memory: Modifies existing memories by memory ID, allowing updates to content and topics.
  • delete_memory: Removes memories from the database by memory ID.
  • analyze: Evaluates whether memory operations completed successfully and produced the expected results.

Example

Here’s an example of how to use the MemoryTools toolkit:
Here is how you can configure the toolkit: