@open-engram/langchain
v1.0.1
Published
LangChain.js integration for Open-Engram — tools and BaseMemory subclass
Downloads
159
Readme
@open-engram/langchain
LangChain.js integration for Open-Engram — tools and BaseMemory subclass.
Install
npm install @open-engram/langchain @open-engram/coreUsage
As Tools
import { EngramClient } from '@open-engram/core';
import { createEngramTools } from '@open-engram/langchain';
const client = await EngramClient.create();
const tools = createEngramTools(client);
// Pass to a LangChain agentAs BaseMemory
import { EngramClient } from '@open-engram/core';
import { EngramMemory } from '@open-engram/langchain';
const client = await EngramClient.create();
const memory = new EngramMemory({ client });
// Use with LangChain chains
const chain = new ConversationChain({ memory });Peer Dependencies
@open-engram/core^1.0.0@langchain/core^0.3.0
License
Apache-2.0
