BaseEntityStore#
- class langchain.memory.entity.BaseEntityStore[source]#
Bases:
BaseModel
,ABC
Deprecated since version 0.3.1: Please see the migration guide at: https://python.langchain.com/docs/versions/migrating_memory/ It will be removed in None==1.0.0.
Abstract base class for Entity store.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- abstract delete(key: str) None [source]#
Delete entity value from store.
- Parameters:
key (str)
- Return type:
None
- abstract exists(key: str) bool [source]#
Check if entity exists in store.
- Parameters:
key (str)
- Return type:
bool