Javascript / Node.js

Getting Started

To install llongterm, use npm or yarn:

npm install llongterm

or

yarn add llongterm

After installation, initialize llongterm by importing the package and creating an instance with your credentials.

const Llongterm = require('llongterm');

or

const Llongterm = require('llongterm').default;
const Llongterm = require('llongterm');

const llongterm = new Llongterm({
  username: "Dom",
  keys: { llongterm: LLONGTERM_KEY, openai: OPENAI_API_KEY },
});

To use llongterm, you first need to create a "Mind" for each instance of memory.

Last updated