Stores a value in agent memory
The key to store the value under
The value to store
Type of memory: 'short' (session) or 'long' (persistent)
Retrieves a value from agent memory
The key to retrieve
The stored value, or null if not found
Searches memory semantically (requires vector store implementation)
The search query
Maximum number of results
Array of relevant stored values
Clears memory of specified type
Type of memory to clear: 'short', 'long', or 'all'
Simple in-memory implementation of AgentMemory. Suitable for development and testing. For production, use a persistent implementation.