nat.plugins.zep_cloud.zep_editor#

Classes#

ZepEditor

Wrapper class that implements NAT interfaces for Zep Integrations Async.

Module Contents#

class ZepEditor(zep_client: zep_cloud.client.AsyncZep)#

Bases: nat.memory.interfaces.MemoryEditor

Wrapper class that implements NAT interfaces for Zep Integrations Async.

Initialize class with Predefined Mem0 Client.

Args: zep_client (AsyncZep): Async client instance.

_client#
async add_items(items: list[nat.memory.models.MemoryItem]) None#

Insert Multiple MemoryItems into the memory. Each MemoryItem is translated and uploaded.

async search(
query: str,
top_k: int = 5,
**kwargs,
) list[nat.memory.models.MemoryItem]#

Retrieve items relevant to the given query.

Args:

query (str): The query string to match. top_k (int): Maximum number of items to return. kwargs: Other keyword arguments for search.

Returns:

list[MemoryItem]: The most relevant MemoryItems for the given query.

async remove_items(**kwargs)#

Remove items. Additional parameters needed for deletion can be specified in keyword arguments.

Args:

kwargs (dict): Keyword arguments to pass to the remove-items method.