Skip to documentation
Docs navigation
Docs/Constructor
MemoGrafter

Constructor

Create the session-oriented core API.

What it does

Create the session-oriented core API.

The constructor wires the dependencies used by the MemoGrafter APIs on the pages in this group.

Signature

TypeScript
new MemoGrafter(config: MemoGrafterConfig): MemoGrafter

Configuration

config (MemoGrafterConfig) — Provider, storage, and memory behavior used by the new instance.

Example

example.ts
const memo = new MemoGrafter({ db, llm, embedder });