InMemoryStore
allows for a generic type to be assigned to the values in the store. We’ll assign type BaseMessage
as the type of our values, keeping with the theme of a chat history store.
Class | Package | Local | PY support | Package downloads | Package latest |
---|---|---|---|---|---|
InMemoryStore | @langchain/core | ✅ | ✅ |
@langchain/core
package:
mset
method:
mdelete
method:
yieldKeys
method. Optionally, you can pass a key prefix to only get back keys which match that prefix.