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'
Interface for agent memory management.
Agents can store information in short-term memory (current session), long-term memory (persistent), and semantic memory (vector embeddings for search).
Example