Installation
Requirements
Before you install, make sure your project has:
- Node.js
v18or higher - TypeScript
v5+ - LangChain TypeScript SDK installed
Install the Package
npm install llm-layer-engineSetup TypeScript
Your tsconfig.json needs these settings for the library to work correctly:
{
"compilerOptions": {
"target": "ES2020",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"esModuleInterop": true,
"outDir": "./dist"
}
}Install LangChain (Required Peer Dependency)
npm install langchain @langchain/coreLLM Layer Engine is designed to wrap and extend LangChain workflows. It does not replace LangChain — it works alongside it.
Verify Import
Create a test file to confirm the install works:
import { createAgent, reActLoop } from "llm-layer-engine";
console.log("LLM Layer Engine ready:", typeof createAgent);Run it:
npx ts-node test.tsIf it prints LLM Layer Engine ready: function — you are set up correctly.
Next Step
Last updated on