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:
- Think through memory management requirements and plan operations
- Execute memory operations (add, update, delete) on the database
- Analyze the results to ensure operations completed successfully and meet requirements
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 theMemoryTools toolkit: