MemoGrafterAgent
Constructor
Create a batteries-included, single-session conversational memory agent.
What it does
Create a batteries-included, single-session conversational memory agent.
The constructor wires the dependencies used by the MemoGrafterAgent APIs on the pages in this group.
Signature
TypeScript
new MemoGrafterAgent(config: MemoGrafterConfig): MemoGrafterAgentConfiguration
config: database, LLM, embedder, and optional memory settings.Result
A new MemoGrafterAgent instance.
Example
example.ts
const agent = new MemoGrafterAgent({ db, llm, embedder });