Class DocumentManager

DocumentManager provides methods to list, create, update, get, and delete Zep document collections.

Constructors

Properties

client: IZepClient

Methods

  • Deletes a collection from the Zep client.

    Parameters

    • collectionName: string

      The name of the collection to delete.

    Returns Promise<void>

    A promise that resolves when the collection is deleted.

    Throws

    If the collection name is not provided.

    Throws

    If the collection is not found.

    Throws

    If the request fails.

  • Retrieves a collection from the Zep client.

    Parameters

    • name: string

      The name of the collection.

    Returns Promise<DocumentCollection>

    A promise that resolves to the DocumentCollection instance.

    Throws

    If the collection name is not provided.

    Throws

    If the collection is not found.

    Throws

    If the request fails.

  • Updates a collection in the Zep client.

    Parameters

    Returns Promise<DocumentCollection>

    A promise that resolves to the updated DocumentCollection instance.

    Throws

    If neither description nor metadata are provided.

    Throws

    If the request fails.

    Throws

    If the collection is not found.