@langchain/core

v0.1.58
Core LangChain.js abstractions and schemas
llm ai gpt3 chain prompt prompt engineering chatgpt machine learning ml and 4 more...

lint

yarn lint:eslint && yarn lint:dpdm

test

NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\.int\.test.ts --testTimeout 30000 --maxWorkers=50%

build

yarn build:deps && yarn clean && yarn build:esm && yarn build:cjs && yarn run build:scripts

clean

rimraf .turbo/ dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn lc-build --config ./langchain.config.js --create-entrypoints --pre

format

prettier --config .prettierrc --write "src"

prepack

yarn build

release

release-it --only-version --config .release-it.json

lint:fix

yarn lint:eslint --fix && yarn lint:dpdm

build:cjs

NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rimraf dist-cjs

build:esm

NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rimraf dist/tests dist/**/tests

lint:dpdm

dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts

build:deps

yarn turbo:command build --filter=@langchain/scripts

test:watch

NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\.int\.test.ts

build:watch

yarn create-entrypoints && tsc --outDir dist/ --watch

lint:eslint

NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/

test:single

NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000

format:check

prettier --config .prettierrc --check "src"

build:scripts

yarn create-entrypoints && yarn check-tree-shaking

move-cjs-to-dist

yarn lc-build --config ./langchain.config.js --move-cjs-dist

test:integration

NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\.int\.test.ts --testTimeout 100000 --maxWorkers=50%

check-tree-shaking

yarn lc-build --config ./langchain.config.js --tree-shaking

create-entrypoints

yarn lc-build --config ./langchain.config.js --create-entrypoints
npm i @langchain/[email protected]

Metadata

  • MIT
  • >=18
  • LangChain
  • released 4/16/2024

Downloads