ZepClient is a Typescript class for interacting with the Zep.

Implements

  • IZepClient

Constructors

  • Constructs a new ZepClient instance.

    Parameters

    • Optional projectApiKey: string

      The project API key to use for authentication.

    • Optional baseURL: string

      Optional. The base URL of the Zep API.

    Returns ZepClient

Properties

baseURL: string = "https://api.getzep.com"
cloud: boolean = false
document: DocumentManager
headers: any
projectApiKey?: string

Methods

  • Constructs the full URL for an API endpoint.

    Parameters

    • endpoint: string

      The endpoint of the API.

    Returns string

    The full URL.

  • Asynchronously initializes a new instance of the ZepClient class.

    Parameters

    • Optional projectApiKey: string

      Optional. The project API key to use for authentication.

    • Optional baseUrl: string

      Optional. The base URL of the Zep API. Only user for open source

    Returns Promise<ZepClient>

    A promise that resolves to a new ZepClient instance.

    Throws

    Throws an error if the server is not running.