InMemoryEntityStore#
- class langchain.memory.entity.InMemoryEntityStore[source]#
Bases:
BaseEntityStore
In-memory Entity store.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param store: Dict[str, str | None] = {}#
- delete(key: str) None [source]#
Delete entity value from store.
- Parameters:
key (str) –
- Return type:
None
- exists(key: str) bool [source]#
Check if entity exists in store.
- Parameters:
key (str) –
- Return type:
bool