Skip to Content
Getting StartedInstallation

Installation

Requirements

Before you install, make sure your project has:

  • Node.js v18 or higher
  • TypeScript v5+
  • LangChain TypeScript SDK installed

Install the Package

npm install llm-layer-engine

Setup 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/core

LLM 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.ts

If it prints LLM Layer Engine ready: function — you are set up correctly.


Next Step

Run your first agent →

Last updated on