diff --git a/.github/workflows/test-exports.yml b/.github/workflows/test-exports.yml index 14f60f54e5c0..08f89711a9d8 100644 --- a/.github/workflows/test-exports.yml +++ b/.github/workflows/test-exports.yml @@ -34,7 +34,7 @@ jobs: - name: Install dependencies run: yarn install --immutable - name: Build - run: yarn workspace langchain-core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build + run: yarn workspace @langchain/core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build shell: bash env: SKIP_API_DOCS: true @@ -54,7 +54,7 @@ jobs: - name: Install dependencies run: yarn install --immutable - name: Build - run: yarn workspace langchain-core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build + run: yarn workspace @langchain/core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build shell: bash env: SKIP_API_DOCS: true @@ -74,7 +74,7 @@ jobs: - name: Install dependencies run: yarn install --immutable - name: Build - run: yarn workspace langchain-core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build + run: yarn workspace @langchain/core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build shell: bash env: SKIP_API_DOCS: true @@ -94,7 +94,7 @@ jobs: - name: Install dependencies run: yarn install --immutable - name: Build - run: yarn workspace langchain-core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build + run: yarn workspace @langchain/core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build shell: bash env: SKIP_API_DOCS: true @@ -114,7 +114,7 @@ jobs: - name: Install dependencies run: yarn install --immutable - name: Build - run: yarn workspace langchain-core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build + run: yarn workspace @langchain/core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build shell: bash env: SKIP_API_DOCS: true @@ -134,7 +134,7 @@ jobs: - name: Install dependencies run: yarn install --immutable - name: Build - run: yarn workspace langchain-core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build + run: yarn workspace @langchain/core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build shell: bash env: SKIP_API_DOCS: true @@ -154,7 +154,7 @@ jobs: # - name: Install dependencies # run: yarn install --immutable # - name: Build - # run: yarn workspace langchain-core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build + # run: yarn workspace @langchain/core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build # shell: bash # env: # SKIP_API_DOCS: true diff --git a/docs/api_refs/package.json b/docs/api_refs/package.json index 5dfe6aa79552..7f12be98f383 100644 --- a/docs/api_refs/package.json +++ b/docs/api_refs/package.json @@ -6,7 +6,7 @@ "dev": "next dev -p 3001", "typedoc": "npx typedoc --options typedoc.json", "build:scripts": "node ./scripts/generate-api-refs.js && node ./scripts/update-typedoc-css.js", - "build": "yarn workspace langchain-core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build && yarn build:scripts && next build", + "build": "yarn workspace @langchain/core build && yarn workspace @langchain/anthropic build && yarn workspace langchain build && yarn build:scripts && next build", "start": "yarn build && next start -p 3001", "lint": "next lint" }, diff --git a/environment_tests/scripts/docker-bun-ci-entrypoint.sh b/environment_tests/scripts/docker-bun-ci-entrypoint.sh index 6049e30c66cb..3fb373c67014 100644 --- a/environment_tests/scripts/docker-bun-ci-entrypoint.sh +++ b/environment_tests/scripts/docker-bun-ci-entrypoint.sh @@ -25,7 +25,7 @@ bun install --no-save # Link the package locally cd ../langchain -sed -i 's/"langchain-core": "[^\"]*"/"langchain-core": "link:langchain-core"/g' package.json +sed -i 's/"@langchain\/core": "[^\"]*"/"@langchain\/core": "link:@langchain\/core"/g' package.json bun link # Reinstall deps with bun because bun doesn't install deps of linked deps @@ -34,7 +34,7 @@ bun install --no-save cd ../app # Replace the workspace dependency with the local copy, and install all others -sed -i 's/"langchain-core": "workspace:\*"/"langchain-core": "link:langchain-core"/g' package.json +sed -i 's/"@langchain\/core": "workspace:\*"/"@langchain\/core": "link:@langchain\/core"/g' package.json sed -i 's/"langchain": "workspace:\*"/"langchain": "link:langchain"/g' package.json bun install --no-save diff --git a/environment_tests/scripts/docker-ci-entrypoint.sh b/environment_tests/scripts/docker-ci-entrypoint.sh index c42e773f5601..7e984ceb8424 100644 --- a/environment_tests/scripts/docker-ci-entrypoint.sh +++ b/environment_tests/scripts/docker-ci-entrypoint.sh @@ -18,7 +18,7 @@ cp ../root/yarn.lock ../root/.yarnrc.yml . # Replace the workspace dependency with the local copy, and install all others # Avoid calling "yarn add ../langchain" as yarn berry does seem to hang for ~30s # before installation actually occurs -sed -i 's/"langchain-core": "workspace:\*"/"langchain-core": "..\/langchain-core"/g' package.json +sed -i 's/"@langchain\/core": "workspace:\*"/"@langchain\/core": "..\/langchain-core"/g' package.json sed -i 's/"@langchain\/anthropic": "workspace:\*"/"@langchain\/anthropic": "..\/langchain-anthropic"/g' package.json sed -i 's/"langchain": "workspace:\*"/"langchain": "..\/langchain"/g' package.json diff --git a/environment_tests/test-exports-bun/package.json b/environment_tests/test-exports-bun/package.json index ac41e1658550..7ea8d689ff2d 100644 --- a/environment_tests/test-exports-bun/package.json +++ b/environment_tests/test-exports-bun/package.json @@ -18,10 +18,10 @@ "license": "MIT", "dependencies": { "@langchain/anthropic": "workspace:*", + "@langchain/core": "workspace:*", "d3-dsv": "2", "hnswlib-node": "^1.4.2", - "langchain": "workspace:*", - "langchain-core": "workspace:*" + "langchain": "workspace:*" }, "devDependencies": { "@tsconfig/recommended": "^1.0.2", diff --git a/environment_tests/test-exports-cf/package.json b/environment_tests/test-exports-cf/package.json index 206838159714..91d4e5b1726e 100644 --- a/environment_tests/test-exports-cf/package.json +++ b/environment_tests/test-exports-cf/package.json @@ -9,8 +9,8 @@ }, "dependencies": { "@langchain/anthropic": "workspace:*", - "langchain": "workspace:*", - "langchain-core": "workspace:*" + "@langchain/core": "workspace:*", + "langchain": "workspace:*" }, "private": true, "scripts": { diff --git a/environment_tests/test-exports-cjs/package.json b/environment_tests/test-exports-cjs/package.json index 3019c68fa662..e95e878079ee 100644 --- a/environment_tests/test-exports-cjs/package.json +++ b/environment_tests/test-exports-cjs/package.json @@ -19,10 +19,10 @@ "license": "MIT", "dependencies": { "@langchain/anthropic": "workspace:*", + "@langchain/core": "workspace:*", "d3-dsv": "2", "hnswlib-node": "^1.4.2", - "langchain": "workspace:*", - "langchain-core": "workspace:*" + "langchain": "workspace:*" }, "devDependencies": { "@tsconfig/recommended": "^1.0.2", diff --git a/environment_tests/test-exports-esbuild/package.json b/environment_tests/test-exports-esbuild/package.json index 25b4863e2a4f..4f32b55101c1 100644 --- a/environment_tests/test-exports-esbuild/package.json +++ b/environment_tests/test-exports-esbuild/package.json @@ -17,10 +17,10 @@ "license": "MIT", "dependencies": { "@langchain/anthropic": "workspace:*", + "@langchain/core": "workspace:*", "d3-dsv": "2", "hnswlib-node": "^1.4.2", - "langchain": "workspace:*", - "langchain-core": "workspace:*" + "langchain": "workspace:*" }, "devDependencies": { "@tsconfig/recommended": "^1.0.2", diff --git a/environment_tests/test-exports-esm/package.json b/environment_tests/test-exports-esm/package.json index c37f54af8e0c..3a66d8190268 100644 --- a/environment_tests/test-exports-esm/package.json +++ b/environment_tests/test-exports-esm/package.json @@ -20,10 +20,10 @@ "license": "MIT", "dependencies": { "@langchain/anthropic": "workspace:*", + "@langchain/core": "workspace:*", "d3-dsv": "2", "hnswlib-node": "^1.4.2", - "langchain": "workspace:*", - "langchain-core": "workspace:*" + "langchain": "workspace:*" }, "devDependencies": { "@tsconfig/recommended": "^1.0.2", diff --git a/environment_tests/test-exports-vercel/package.json b/environment_tests/test-exports-vercel/package.json index b4f0f12937cd..43fa0c7396f3 100644 --- a/environment_tests/test-exports-vercel/package.json +++ b/environment_tests/test-exports-vercel/package.json @@ -10,13 +10,13 @@ }, "dependencies": { "@langchain/anthropic": "workspace:*", + "@langchain/core": "workspace:*", "@types/node": "18.15.11", "@types/react": "18.0.33", "@types/react-dom": "18.0.11", "eslint": "8.37.0", "eslint-config-next": "13.3.0", "langchain": "workspace:*", - "langchain-core": "workspace:*", "next": "13.4.9", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/environment_tests/test-exports-vite/package.json b/environment_tests/test-exports-vite/package.json index c1da8133f61b..c6027a188471 100644 --- a/environment_tests/test-exports-vite/package.json +++ b/environment_tests/test-exports-vite/package.json @@ -11,8 +11,8 @@ }, "dependencies": { "@langchain/anthropic": "workspace:*", - "langchain": "workspace:*", - "langchain-core": "workspace:*" + "@langchain/core": "workspace:*", + "langchain": "workspace:*" }, "devDependencies": { "typescript": "^5.0.0", diff --git a/langchain-core/README.md b/langchain-core/README.md index ef81c1da1ee8..c99e16f9d763 100644 --- a/langchain-core/README.md +++ b/langchain-core/README.md @@ -1 +1 @@ -# langchain-core +# @langchain/core diff --git a/langchain-core/package.json b/langchain-core/package.json index 193435f8bafa..9739eb621b7b 100644 --- a/langchain-core/package.json +++ b/langchain-core/package.json @@ -1,7 +1,7 @@ { - "name": "langchain-core", - "version": "0.0.4", - "description": "Typescript bindings for langchain", + "name": "@langchain/core", + "version": "0.0.0", + "description": "Core LangChain.js abstractions and schemas", "type": "module", "engines": { "node": ">=18" diff --git a/langchain-core/scripts/create-entrypoints.js b/langchain-core/scripts/create-entrypoints.js index 5ed09882f5ba..31e99061c5b7 100644 --- a/langchain-core/scripts/create-entrypoints.js +++ b/langchain-core/scripts/create-entrypoints.js @@ -166,7 +166,7 @@ const generateImportMap = () => { const importTypes = [ "langchain-core", (k, p) => - ` "langchain-core/${k}"?: + ` "@langchain/core/${k}"?: | typeof import("../${p}.js") | Promise;`, "src/load/import_type.d.ts", diff --git a/langchain/package.json b/langchain/package.json index a23196029822..e86788dcd0d1 100644 --- a/langchain/package.json +++ b/langchain/package.json @@ -866,6 +866,7 @@ "@huggingface/inference": "^2.6.4", "@jest/globals": "^29.5.0", "@langchain/anthropic": "workspace:*", + "@langchain/core": "workspace:*", "@mozilla/readability": "^0.4.4", "@notionhq/client": "^2.2.10", "@opensearch-project/opensearch": "^2.2.0", @@ -943,7 +944,6 @@ "jest": "^29.5.0", "jest-environment-node": "^29.6.4", "jsdom": "^22.1.0", - "langchain-core": "workspace:*", "llmonitor": "^0.5.9", "lodash": "^4.17.21", "mammoth": "^1.5.1", @@ -1380,13 +1380,13 @@ }, "dependencies": { "@langchain/anthropic": "^0.0.2", + "@langchain/core": "^0.0.0", "binary-extensions": "^2.2.0", "expr-eval": "^2.0.2", "flat": "^5.0.2", "js-tiktoken": "^1.0.7", "js-yaml": "^4.1.0", "jsonpointer": "^5.0.1", - "langchain-core": "^0.0.4", "langchainhub": "~0.0.6", "langsmith": "~0.0.48", "ml-distance": "^4.0.0", diff --git a/langchain/scripts/check-tree-shaking.js b/langchain/scripts/check-tree-shaking.js index 968d36b5b659..66a1f194199f 100644 --- a/langchain/scripts/check-tree-shaking.js +++ b/langchain/scripts/check-tree-shaking.js @@ -27,7 +27,7 @@ export function listExternals() { ...Object.keys(packageJson.peerDependencies), /node\:/, /js-tiktoken/, - /langchain-core/, + /@langchain\/core/, "axios", // axios is a dependency of openai "convex", "convex/server", diff --git a/langchain/src/base_language/count_tokens.ts b/langchain/src/base_language/count_tokens.ts index 9fe94c2d3db7..6a4e63514d05 100644 --- a/langchain/src/base_language/count_tokens.ts +++ b/langchain/src/base_language/count_tokens.ts @@ -2,4 +2,4 @@ export { calculateMaxTokens, getModelContextSize, getEmbeddingContextSize, -} from "langchain-core/language_models/base"; +} from "@langchain/core/language_models/base"; diff --git a/langchain/src/base_language/index.ts b/langchain/src/base_language/index.ts index 8352e2667ee4..cf3ff9707d14 100644 --- a/langchain/src/base_language/index.ts +++ b/langchain/src/base_language/index.ts @@ -7,7 +7,7 @@ export { type BaseFunctionCallOptions, type BaseLanguageModelInput, BaseLanguageModel, -} from "langchain-core/language_models/base"; +} from "@langchain/core/language_models/base"; /* * Export utility functions for token calculations: diff --git a/langchain/src/cache/base.ts b/langchain/src/cache/base.ts index c520cdf88833..a99bc5982578 100644 --- a/langchain/src/cache/base.ts +++ b/langchain/src/cache/base.ts @@ -1 +1 @@ -export * from "langchain-core/caches"; +export * from "@langchain/core/caches"; diff --git a/langchain/src/cache/index.ts b/langchain/src/cache/index.ts index 4ddca2bc973b..ec7d952531f4 100644 --- a/langchain/src/cache/index.ts +++ b/langchain/src/cache/index.ts @@ -1 +1 @@ -export { InMemoryCache } from "langchain-core/caches"; +export { InMemoryCache } from "@langchain/core/caches"; diff --git a/langchain/src/cache/tests/ioredis.test.ts b/langchain/src/cache/tests/ioredis.test.ts index 3cd8303d8d43..c91b6ee1618c 100644 --- a/langchain/src/cache/tests/ioredis.test.ts +++ b/langchain/src/cache/tests/ioredis.test.ts @@ -1,5 +1,5 @@ import { test, expect, jest } from "@jest/globals"; -import { insecureHash } from "langchain-core/utils/hash"; +import { insecureHash } from "@langchain/core/utils/hash"; import { RedisCache } from "../ioredis.js"; diff --git a/langchain/src/cache/tests/redis.test.ts b/langchain/src/cache/tests/redis.test.ts index 01d588ea466b..e4ae9cb5a425 100644 --- a/langchain/src/cache/tests/redis.test.ts +++ b/langchain/src/cache/tests/redis.test.ts @@ -1,5 +1,5 @@ import { test, expect, jest } from "@jest/globals"; -import { insecureHash } from "langchain-core/utils/hash"; +import { insecureHash } from "@langchain/core/utils/hash"; import { RedisCache } from "../redis.js"; diff --git a/langchain/src/cache/tests/upstash_redis.test.ts b/langchain/src/cache/tests/upstash_redis.test.ts index d51ab3afc311..cd7c5d53fe68 100644 --- a/langchain/src/cache/tests/upstash_redis.test.ts +++ b/langchain/src/cache/tests/upstash_redis.test.ts @@ -1,5 +1,5 @@ import { test, expect, jest } from "@jest/globals"; -import { insecureHash } from "langchain-core/utils/hash"; +import { insecureHash } from "@langchain/core/utils/hash"; import { UpstashRedisCache } from "../upstash_redis.js"; import { StoredGeneration } from "../../schema/index.js"; diff --git a/langchain/src/callbacks/base.ts b/langchain/src/callbacks/base.ts index 158714d7e0ee..9e7b3d46fc79 100644 --- a/langchain/src/callbacks/base.ts +++ b/langchain/src/callbacks/base.ts @@ -1 +1 @@ -export * from "langchain-core/callbacks/base"; +export * from "@langchain/core/callbacks/base"; diff --git a/langchain/src/callbacks/handlers/console.ts b/langchain/src/callbacks/handlers/console.ts index 272dd19f0666..70d61fe5630e 100644 --- a/langchain/src/callbacks/handlers/console.ts +++ b/langchain/src/callbacks/handlers/console.ts @@ -1 +1 @@ -export * from "langchain-core/tracers/console"; +export * from "@langchain/core/tracers/console"; diff --git a/langchain/src/callbacks/handlers/initialize.ts b/langchain/src/callbacks/handlers/initialize.ts index 9cdba46bcb70..7a6a6696d1ee 100644 --- a/langchain/src/callbacks/handlers/initialize.ts +++ b/langchain/src/callbacks/handlers/initialize.ts @@ -1 +1 @@ -export * from "langchain-core/tracers/initialize"; +export * from "@langchain/core/tracers/initialize"; diff --git a/langchain/src/callbacks/handlers/log_stream.ts b/langchain/src/callbacks/handlers/log_stream.ts index 3a26f965c2cc..440526e9f2fe 100644 --- a/langchain/src/callbacks/handlers/log_stream.ts +++ b/langchain/src/callbacks/handlers/log_stream.ts @@ -1 +1 @@ -export * from "langchain-core/tracers/log_stream"; +export * from "@langchain/core/tracers/log_stream"; diff --git a/langchain/src/callbacks/handlers/run_collector.ts b/langchain/src/callbacks/handlers/run_collector.ts index 4c1b78ac2d5f..988f9120517b 100644 --- a/langchain/src/callbacks/handlers/run_collector.ts +++ b/langchain/src/callbacks/handlers/run_collector.ts @@ -1 +1 @@ -export * from "langchain-core/tracers/run_collector"; +export * from "@langchain/core/tracers/run_collector"; diff --git a/langchain/src/callbacks/handlers/tracer.ts b/langchain/src/callbacks/handlers/tracer.ts index 3819845f9471..13d15fd39ef9 100644 --- a/langchain/src/callbacks/handlers/tracer.ts +++ b/langchain/src/callbacks/handlers/tracer.ts @@ -1 +1 @@ -export * from "langchain-core/tracers/base"; +export * from "@langchain/core/tracers/base"; diff --git a/langchain/src/callbacks/handlers/tracer_langchain.ts b/langchain/src/callbacks/handlers/tracer_langchain.ts index 031647f54faa..1868fdb0ef61 100644 --- a/langchain/src/callbacks/handlers/tracer_langchain.ts +++ b/langchain/src/callbacks/handlers/tracer_langchain.ts @@ -1 +1 @@ -export * from "langchain-core/tracers/tracer_langchain"; +export * from "@langchain/core/tracers/tracer_langchain"; diff --git a/langchain/src/callbacks/handlers/tracer_langchain_v1.ts b/langchain/src/callbacks/handlers/tracer_langchain_v1.ts index 142daabb10ab..4f170d2e2c94 100644 --- a/langchain/src/callbacks/handlers/tracer_langchain_v1.ts +++ b/langchain/src/callbacks/handlers/tracer_langchain_v1.ts @@ -1 +1 @@ -export * from "langchain-core/tracers/tracer_langchain_v1"; +export * from "@langchain/core/tracers/tracer_langchain_v1"; diff --git a/langchain/src/callbacks/manager.ts b/langchain/src/callbacks/manager.ts index 78bd4701496f..40b81c2e4a0f 100644 --- a/langchain/src/callbacks/manager.ts +++ b/langchain/src/callbacks/manager.ts @@ -1 +1 @@ -export * from "langchain-core/callbacks/manager"; +export * from "@langchain/core/callbacks/manager"; diff --git a/langchain/src/callbacks/promises.ts b/langchain/src/callbacks/promises.ts index 26e5c66aaef6..2491e7cc6503 100644 --- a/langchain/src/callbacks/promises.ts +++ b/langchain/src/callbacks/promises.ts @@ -1 +1 @@ -export * from "langchain-core/callbacks/promises"; +export * from "@langchain/core/callbacks/promises"; diff --git a/langchain/src/chains/openai_functions/structured_output.ts b/langchain/src/chains/openai_functions/structured_output.ts index 737023712d11..e893e9f7a055 100644 --- a/langchain/src/chains/openai_functions/structured_output.ts +++ b/langchain/src/chains/openai_functions/structured_output.ts @@ -2,7 +2,7 @@ import { z } from "zod"; import { zodToJsonSchema } from "zod-to-json-schema"; import { JsonSchema7Type } from "zod-to-json-schema/src/parseDef.js"; -import { Validator } from "langchain-core/utils/json_schema"; +import { Validator } from "@langchain/core/utils/json_schema"; import { LLMChain, LLMChainInput } from "../llm_chain.js"; import { ChatOpenAI } from "../../chat_models/openai.js"; import { BasePromptTemplate } from "../../prompts/index.js"; diff --git a/langchain/src/chat_models/base.ts b/langchain/src/chat_models/base.ts index 7ff1ef2abc6e..e594d1b4b0d2 100644 --- a/langchain/src/chat_models/base.ts +++ b/langchain/src/chat_models/base.ts @@ -1 +1 @@ -export * from "langchain-core/language_models/chat_models"; +export * from "@langchain/core/language_models/chat_models"; diff --git a/langchain/src/document.ts b/langchain/src/document.ts index 238d2e2824ba..78f834d0dacf 100644 --- a/langchain/src/document.ts +++ b/langchain/src/document.ts @@ -1 +1 @@ -export { type DocumentInput, Document } from "langchain-core/documents"; +export { type DocumentInput, Document } from "@langchain/core/documents"; diff --git a/langchain/src/embeddings/base.ts b/langchain/src/embeddings/base.ts index 6668393eaec2..6e1601962d21 100644 --- a/langchain/src/embeddings/base.ts +++ b/langchain/src/embeddings/base.ts @@ -1 +1 @@ -export * from "langchain-core/embeddings"; +export * from "@langchain/core/embeddings"; diff --git a/langchain/src/embeddings/cache_backed.ts b/langchain/src/embeddings/cache_backed.ts index 5863d3da9ea9..0069a29e92ae 100644 --- a/langchain/src/embeddings/cache_backed.ts +++ b/langchain/src/embeddings/cache_backed.ts @@ -1,4 +1,4 @@ -import { insecureHash } from "langchain-core/utils/hash"; +import { insecureHash } from "@langchain/core/utils/hash"; import { BaseStore } from "../schema/storage.js"; import { EncoderBackedStore } from "../storage/encoder_backed.js"; diff --git a/langchain/src/llms/base.ts b/langchain/src/llms/base.ts index 777627cac57e..441d8a2d9c70 100644 --- a/langchain/src/llms/base.ts +++ b/langchain/src/llms/base.ts @@ -1 +1 @@ -export * from "langchain-core/language_models/llms"; +export * from "@langchain/core/language_models/llms"; diff --git a/langchain/src/load/index.ts b/langchain/src/load/index.ts index 610a121b3370..58834da79ef1 100644 --- a/langchain/src/load/index.ts +++ b/langchain/src/load/index.ts @@ -1,4 +1,4 @@ -import { load as coreLoad } from "langchain-core/load"; +import { load as coreLoad } from "@langchain/core/load"; import { optionalImportEntrypoints } from "./import_constants.js"; import * as importMap from "./import_map.js"; import { OptionalImportMap, SecretMap } from "./import_type.js"; diff --git a/langchain/src/load/serializable.ts b/langchain/src/load/serializable.ts index 40069723a034..b196ae7faac5 100644 --- a/langchain/src/load/serializable.ts +++ b/langchain/src/load/serializable.ts @@ -1 +1 @@ -export * from "langchain-core/load/serializable"; +export * from "@langchain/core/load/serializable"; diff --git a/langchain/src/load/tests/load.test.ts b/langchain/src/load/tests/load.test.ts index 8f4348bc1ba7..2c78537329fa 100644 --- a/langchain/src/load/tests/load.test.ts +++ b/langchain/src/load/tests/load.test.ts @@ -1,7 +1,7 @@ import { test, expect } from "@jest/globals"; import { stringify } from "yaml"; import { z } from "zod"; -import { RunnableSequence } from "langchain-core/runnables"; +import { RunnableSequence } from "@langchain/core/runnables"; import { load } from "../index.js"; import { OpenAI } from "../../llms/openai.js"; diff --git a/langchain/src/memory/base.ts b/langchain/src/memory/base.ts index 1ceee4c3d5b6..579a648987d3 100644 --- a/langchain/src/memory/base.ts +++ b/langchain/src/memory/base.ts @@ -1,2 +1,2 @@ -export * from "langchain-core/memory"; -export { getBufferString } from "langchain-core/messages"; +export * from "@langchain/core/memory"; +export { getBufferString } from "@langchain/core/messages"; diff --git a/langchain/src/output_parsers/list.ts b/langchain/src/output_parsers/list.ts index c9052833cb35..529ef1f1ced3 100644 --- a/langchain/src/output_parsers/list.ts +++ b/langchain/src/output_parsers/list.ts @@ -2,4 +2,4 @@ export { ListOutputParser, CommaSeparatedListOutputParser, CustomListOutputParser, -} from "langchain-core/output_parsers"; +} from "@langchain/core/output_parsers"; diff --git a/langchain/src/output_parsers/openai_functions.ts b/langchain/src/output_parsers/openai_functions.ts index a57e9a142197..3af00c128195 100644 --- a/langchain/src/output_parsers/openai_functions.ts +++ b/langchain/src/output_parsers/openai_functions.ts @@ -2,7 +2,7 @@ import { JsonSchema7ObjectType } from "zod-to-json-schema/src/parsers/object.js" import { compare, type Operation as JSONPatchOperation, -} from "langchain-core/utils/json_patch"; +} from "@langchain/core/utils/json_patch"; import { ChatGeneration, Generation } from "../schema/index.js"; import { Optional } from "../types/type-utils.js"; diff --git a/langchain/src/output_parsers/tests/openai_functions.int.test.ts b/langchain/src/output_parsers/tests/openai_functions.int.test.ts index 0e53340f5a5d..accd51768c9e 100644 --- a/langchain/src/output_parsers/tests/openai_functions.int.test.ts +++ b/langchain/src/output_parsers/tests/openai_functions.int.test.ts @@ -3,7 +3,7 @@ import { expect, test } from "@jest/globals"; import { z } from "zod"; import { zodToJsonSchema } from "zod-to-json-schema"; -import { Operation, applyPatch } from "langchain-core/utils/json_patch"; +import { Operation, applyPatch } from "@langchain/core/utils/json_patch"; import { ChatOpenAI } from "../../chat_models/openai.js"; import { ChatPromptTemplate } from "../../prompts/index.js"; diff --git a/langchain/src/prompts/base.ts b/langchain/src/prompts/base.ts index 879479b53b21..f0eb888a4cdf 100644 --- a/langchain/src/prompts/base.ts +++ b/langchain/src/prompts/base.ts @@ -3,8 +3,8 @@ export { BaseStringPromptTemplate, type BasePromptTemplateInput, BasePromptTemplate, -} from "langchain-core/prompts"; +} from "@langchain/core/prompts"; -export { StringPromptValue } from "langchain-core/prompt_values"; +export { StringPromptValue } from "@langchain/core/prompt_values"; -export { BaseExampleSelector } from "langchain-core/example_selectors"; +export { BaseExampleSelector } from "@langchain/core/example_selectors"; diff --git a/langchain/src/prompts/chat.ts b/langchain/src/prompts/chat.ts index 08192f617976..b31d4d20f559 100644 --- a/langchain/src/prompts/chat.ts +++ b/langchain/src/prompts/chat.ts @@ -13,9 +13,9 @@ export { type ChatPromptTemplateInput, type BaseMessagePromptTemplateLike, ChatPromptTemplate, -} from "langchain-core/prompts"; +} from "@langchain/core/prompts"; export { type ChatPromptValueFields, ChatPromptValue, -} from "langchain-core/prompt_values"; +} from "@langchain/core/prompt_values"; diff --git a/langchain/src/prompts/few_shot.ts b/langchain/src/prompts/few_shot.ts index 5ea6b5b62870..6b7ac6f04b87 100644 --- a/langchain/src/prompts/few_shot.ts +++ b/langchain/src/prompts/few_shot.ts @@ -3,4 +3,4 @@ export { FewShotPromptTemplate, type FewShotChatMessagePromptTemplateInput, FewShotChatMessagePromptTemplate, -} from "langchain-core/prompts"; +} from "@langchain/core/prompts"; diff --git a/langchain/src/prompts/index.ts b/langchain/src/prompts/index.ts index 5580e87d79d4..3622ceedd140 100644 --- a/langchain/src/prompts/index.ts +++ b/langchain/src/prompts/index.ts @@ -4,7 +4,7 @@ export { StringPromptValue, BaseStringPromptTemplate, } from "./base.js"; -export { BaseExampleSelector } from "langchain-core/example_selectors"; +export { BaseExampleSelector } from "@langchain/core/example_selectors"; export { PromptTemplate, type PromptTemplateInput } from "./prompt.js"; export { BasePromptSelector, diff --git a/langchain/src/prompts/pipeline.ts b/langchain/src/prompts/pipeline.ts index 9625f6bb7580..5adc4dd9d4e2 100644 --- a/langchain/src/prompts/pipeline.ts +++ b/langchain/src/prompts/pipeline.ts @@ -2,4 +2,4 @@ export { type PipelinePromptParams, type PipelinePromptTemplateInput, PipelinePromptTemplate, -} from "langchain-core/prompts"; +} from "@langchain/core/prompts"; diff --git a/langchain/src/prompts/prompt.ts b/langchain/src/prompts/prompt.ts index 6c3fc6c0104d..b7aa45e917dd 100644 --- a/langchain/src/prompts/prompt.ts +++ b/langchain/src/prompts/prompt.ts @@ -2,4 +2,4 @@ export { type PromptTemplateInput, type ParamsFromFString, PromptTemplate, -} from "langchain-core/prompts"; +} from "@langchain/core/prompts"; diff --git a/langchain/src/prompts/selectors/LengthBasedExampleSelector.ts b/langchain/src/prompts/selectors/LengthBasedExampleSelector.ts index d86b6e8594f4..c242bfa68f17 100644 --- a/langchain/src/prompts/selectors/LengthBasedExampleSelector.ts +++ b/langchain/src/prompts/selectors/LengthBasedExampleSelector.ts @@ -1,4 +1,4 @@ export { type LengthBasedExampleSelectorInput, LengthBasedExampleSelector, -} from "langchain-core/example_selectors"; +} from "@langchain/core/example_selectors"; diff --git a/langchain/src/prompts/selectors/SemanticSimilarityExampleSelector.ts b/langchain/src/prompts/selectors/SemanticSimilarityExampleSelector.ts index 0365ad29ffc3..0904563d8009 100644 --- a/langchain/src/prompts/selectors/SemanticSimilarityExampleSelector.ts +++ b/langchain/src/prompts/selectors/SemanticSimilarityExampleSelector.ts @@ -1 +1 @@ -export * from "langchain-core/example_selectors"; +export * from "@langchain/core/example_selectors"; diff --git a/langchain/src/prompts/selectors/conditional.ts b/langchain/src/prompts/selectors/conditional.ts index 51b414f25850..329bb43e40b7 100644 --- a/langchain/src/prompts/selectors/conditional.ts +++ b/langchain/src/prompts/selectors/conditional.ts @@ -4,4 +4,4 @@ export { ConditionalPromptSelector, isLLM, isChatModel, -} from "langchain-core/example_selectors"; +} from "@langchain/core/example_selectors"; diff --git a/langchain/src/prompts/serde.ts b/langchain/src/prompts/serde.ts index c150816e7271..9a68a0e18774 100644 --- a/langchain/src/prompts/serde.ts +++ b/langchain/src/prompts/serde.ts @@ -2,4 +2,4 @@ export { type SerializedPromptTemplate, type SerializedFewShotTemplate, type SerializedBasePromptTemplate, -} from "langchain-core/prompts"; +} from "@langchain/core/prompts"; diff --git a/langchain/src/prompts/template.ts b/langchain/src/prompts/template.ts index 20c5c4b01f69..51d8d366dbd1 100644 --- a/langchain/src/prompts/template.ts +++ b/langchain/src/prompts/template.ts @@ -7,4 +7,4 @@ export { renderTemplate, parseTemplate, checkValidTemplate, -} from "langchain-core/prompts"; +} from "@langchain/core/prompts"; diff --git a/langchain/src/runnables/index.ts b/langchain/src/runnables/index.ts index 747020c317a8..b403a27629ac 100644 --- a/langchain/src/runnables/index.ts +++ b/langchain/src/runnables/index.ts @@ -1 +1 @@ -export * from "langchain-core/runnables"; +export * from "@langchain/core/runnables"; diff --git a/langchain/src/schema/document.ts b/langchain/src/schema/document.ts index 05beccf5c0fe..9e50f747c03f 100644 --- a/langchain/src/schema/document.ts +++ b/langchain/src/schema/document.ts @@ -1,4 +1,4 @@ -import { BaseDocumentTransformer } from "langchain-core/documents"; +import { BaseDocumentTransformer } from "@langchain/core/documents"; import { Document } from "../document.js"; export { BaseDocumentTransformer }; diff --git a/langchain/src/schema/index.ts b/langchain/src/schema/index.ts index b2773a9dced2..299068a67252 100644 --- a/langchain/src/schema/index.ts +++ b/langchain/src/schema/index.ts @@ -4,7 +4,7 @@ import { HumanMessage, AIMessage, SystemMessage, -} from "langchain-core/messages"; +} from "@langchain/core/messages"; import { Document } from "../document.js"; import { Serializable } from "../load/serializable.js"; @@ -12,11 +12,11 @@ export { type AgentAction, type AgentFinish, type AgentStep, -} from "langchain-core/agents"; +} from "@langchain/core/agents"; -export { RUN_KEY } from "langchain-core/outputs"; +export { RUN_KEY } from "@langchain/core/outputs"; -export { type Example } from "langchain-core/prompts"; +export { type Example } from "@langchain/core/prompts"; // TODO: Deprecate when SDK typing is updated export type OpenAIToolCall = OpenAIClient.ChatCompletionMessageToolCall & { @@ -48,7 +48,7 @@ export { coerceMessageLikeToMessage, isBaseMessage, isBaseMessageChunk, -} from "langchain-core/messages"; +} from "@langchain/core/messages"; export { BaseMessage, HumanMessage, AIMessage, SystemMessage }; @@ -84,23 +84,23 @@ export { type ChatGeneration, ChatGenerationChunk, type LLMResult, -} from "langchain-core/outputs"; +} from "@langchain/core/outputs"; -export { BasePromptValue } from "langchain-core/prompt_values"; +export { BasePromptValue } from "@langchain/core/prompt_values"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export { type InputValues, type PartialValues, type ChainValues, -} from "langchain-core/utils/types"; +} from "@langchain/core/utils/types"; export { BaseChatMessageHistory, BaseListChatMessageHistory, -} from "langchain-core/chat_history"; +} from "@langchain/core/chat_history"; -export { BaseCache } from "langchain-core/caches"; +export { BaseCache } from "@langchain/core/caches"; /** * Base class for all file stores. All file stores should extend this diff --git a/langchain/src/schema/output_parser.ts b/langchain/src/schema/output_parser.ts index 4fad9ab5543c..ad6fbf09e5bb 100644 --- a/langchain/src/schema/output_parser.ts +++ b/langchain/src/schema/output_parser.ts @@ -1 +1 @@ -export * from "langchain-core/output_parsers"; +export * from "@langchain/core/output_parsers"; diff --git a/langchain/src/schema/retriever.ts b/langchain/src/schema/retriever.ts index 8ea7e625f3c5..64c6187e917f 100644 --- a/langchain/src/schema/retriever.ts +++ b/langchain/src/schema/retriever.ts @@ -1 +1 @@ -export * from "langchain-core/retrievers"; +export * from "@langchain/core/retrievers"; diff --git a/langchain/src/schema/runnable/base.ts b/langchain/src/schema/runnable/base.ts index ed73aa9f5768..9aaf2f30c5a5 100644 --- a/langchain/src/schema/runnable/base.ts +++ b/langchain/src/schema/runnable/base.ts @@ -13,4 +13,4 @@ export { RunnableLambda, RunnableWithFallbacks, _coerceToRunnable, -} from "langchain-core/runnables"; +} from "@langchain/core/runnables"; diff --git a/langchain/src/schema/runnable/branch.ts b/langchain/src/schema/runnable/branch.ts index 4988bba338be..6511918bfccd 100644 --- a/langchain/src/schema/runnable/branch.ts +++ b/langchain/src/schema/runnable/branch.ts @@ -2,4 +2,4 @@ export { type Branch, type BranchLike, RunnableBranch, -} from "langchain-core/runnables"; +} from "@langchain/core/runnables"; diff --git a/langchain/src/schema/runnable/config.ts b/langchain/src/schema/runnable/config.ts index 46caa16d5e05..0d61f60a1fef 100644 --- a/langchain/src/schema/runnable/config.ts +++ b/langchain/src/schema/runnable/config.ts @@ -1,4 +1,4 @@ export { getCallbackMangerForConfig, RunnableConfig, -} from "langchain-core/runnables"; +} from "@langchain/core/runnables"; diff --git a/langchain/src/schema/runnable/index.ts b/langchain/src/schema/runnable/index.ts index 747020c317a8..b403a27629ac 100644 --- a/langchain/src/schema/runnable/index.ts +++ b/langchain/src/schema/runnable/index.ts @@ -1 +1 @@ -export * from "langchain-core/runnables"; +export * from "@langchain/core/runnables"; diff --git a/langchain/src/schema/runnable/passthrough.ts b/langchain/src/schema/runnable/passthrough.ts index 28796a543791..890aed9d41cc 100644 --- a/langchain/src/schema/runnable/passthrough.ts +++ b/langchain/src/schema/runnable/passthrough.ts @@ -1 +1 @@ -export { RunnableAssign, RunnablePassthrough } from "langchain-core/runnables"; +export { RunnableAssign, RunnablePassthrough } from "@langchain/core/runnables"; diff --git a/langchain/src/schema/runnable/router.ts b/langchain/src/schema/runnable/router.ts index 7c9104174aaa..c7c550d94f85 100644 --- a/langchain/src/schema/runnable/router.ts +++ b/langchain/src/schema/runnable/router.ts @@ -1 +1 @@ -export { type RouterInput, RouterRunnable } from "langchain-core/runnables"; +export { type RouterInput, RouterRunnable } from "@langchain/core/runnables"; diff --git a/langchain/src/schema/storage.ts b/langchain/src/schema/storage.ts index de67c6fb6877..4d950bd48802 100644 --- a/langchain/src/schema/storage.ts +++ b/langchain/src/schema/storage.ts @@ -1 +1 @@ -export * from "langchain-core/stores"; +export * from "@langchain/core/stores"; diff --git a/langchain/src/util/async_caller.ts b/langchain/src/util/async_caller.ts index a4ec34c2c3b1..3ac5c0d7b589 100644 --- a/langchain/src/util/async_caller.ts +++ b/langchain/src/util/async_caller.ts @@ -1 +1 @@ -export * from "langchain-core/utils/async_caller"; +export * from "@langchain/core/utils/async_caller"; diff --git a/langchain/src/vectorstores/tests/vectara.int.test.ts b/langchain/src/vectorstores/tests/vectara.int.test.ts index d8c5838c21fa..c29ac59a8de6 100644 --- a/langchain/src/vectorstores/tests/vectara.int.test.ts +++ b/langchain/src/vectorstores/tests/vectara.int.test.ts @@ -2,7 +2,7 @@ /* eslint-disable no-process-env */ import fs from "fs"; import { expect, beforeAll } from "@jest/globals"; -import { insecureHash } from "langchain-core/utils/hash"; +import { insecureHash } from "@langchain/core/utils/hash"; import { FakeEmbeddings } from "../../embeddings/fake.js"; import { Document } from "../../document.js"; import { VectaraFile, VectaraLibArgs, VectaraStore } from "../vectara.js"; diff --git a/libs/langchain-anthropic/package.json b/libs/langchain-anthropic/package.json index 6e3513623f3f..f431193523c6 100644 --- a/libs/langchain-anthropic/package.json +++ b/libs/langchain-anthropic/package.json @@ -33,10 +33,11 @@ "license": "MIT", "dependencies": { "@anthropic-ai/sdk": "^0.10.0", - "langchain-core": "^0.0.4" + "@langchain/core": "^0.0.0" }, "devDependencies": { "@jest/globals": "^29.5.0", + "@langchain/core": "workspace:*", "@swc/core": "^1.3.90", "@swc/jest": "^0.2.29", "dpdm": "^3.12.0", @@ -48,7 +49,6 @@ "eslint-plugin-prettier": "^4.2.1", "jest": "^29.5.0", "jest-environment-node": "^29.6.4", - "langchain-core": "workspace:*", "prettier": "^2.8.3", "release-it": "^15.10.1", "rimraf": "^5.0.1", diff --git a/libs/langchain-anthropic/scripts/check-tree-shaking.js b/libs/langchain-anthropic/scripts/check-tree-shaking.js index 63e705e81fc1..8073e3d5507b 100644 --- a/libs/langchain-anthropic/scripts/check-tree-shaking.js +++ b/libs/langchain-anthropic/scripts/check-tree-shaking.js @@ -26,7 +26,7 @@ export function listExternals() { ...Object.keys(packageJson.dependencies), ...Object.keys(packageJson.peerDependencies ?? {}), /node\:/, - /langchain-core\//, + /@langchain\/core\//, ]; } diff --git a/libs/langchain-anthropic/src/chat_models.ts b/libs/langchain-anthropic/src/chat_models.ts index 0e70beec5399..b386dea10fd1 100644 --- a/libs/langchain-anthropic/src/chat_models.ts +++ b/libs/langchain-anthropic/src/chat_models.ts @@ -7,24 +7,24 @@ import { import type { CompletionCreateParams } from "@anthropic-ai/sdk/resources/completions"; import type { Stream } from "@anthropic-ai/sdk/streaming"; -import { CallbackManagerForLLMRun } from "langchain-core/callbacks/manager"; +import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager"; import { AIMessage, AIMessageChunk, type BaseMessage, ChatMessage, -} from "langchain-core/messages"; +} from "@langchain/core/messages"; import { type ChatGeneration, ChatGenerationChunk, type ChatResult, -} from "langchain-core/outputs"; -import { getEnvironmentVariable } from "langchain-core/utils/env"; +} from "@langchain/core/outputs"; +import { getEnvironmentVariable } from "@langchain/core/utils/env"; import { BaseChatModel, type BaseChatModelParams, -} from "langchain-core/language_models/chat_models"; -import { type BaseLanguageModelCallOptions } from "langchain-core/language_models/base"; +} from "@langchain/core/language_models/chat_models"; +import { type BaseLanguageModelCallOptions } from "@langchain/core/language_models/base"; export { AI_PROMPT, HUMAN_PROMPT }; diff --git a/package.json b/package.json index 44a129a04675..db9bddfc3b6a 100644 --- a/package.json +++ b/package.json @@ -23,14 +23,14 @@ "format:check": "turbo run format:check", "lint": "turbo run lint --concurrency 1", "lint:fix": "yarn lint -- --fix", - "test": "yarn test:unit && yarn workspace langchain-core build && yarn workspace langchain build && yarn test:exports:docker", + "test": "yarn test:unit && yarn workspace @langchain/core build && yarn workspace langchain build && yarn test:exports:docker", "test:unit": "turbo run test --filter langchain", "test:int": "yarn run test:int:deps && turbo run test:integration ; yarn run test:int:deps:down", "test:int:deps": "docker compose -f test-int-deps-docker-compose.yml up -d", "test:int:deps:down": "docker compose -f test-int-deps-docker-compose.yml down", "test:exports:docker": "docker compose up --force-recreate", "publish": "bash langchain/scripts/release-branch.sh && turbo run --filter langchain build lint test --concurrency 1 && yarn run test:exports:docker && yarn workspace langchain run release && echo '🔗 Open https://github.com/langchain-ai/langchainjs/compare/release?expand=1 and merge the release PR'", - "publish:core": "bash langchain/scripts/release-branch.sh && turbo run --filter langchain-core build lint test --concurrency 1 && yarn run test:exports:docker && yarn workspace langchain-core run release && echo '🔗 Open https://github.com/langchain-ai/langchainjs/compare/release?expand=1 and merge the release PR'", + "publish:core": "bash langchain/scripts/release-branch.sh && turbo run --filter @langchain/core build lint test --concurrency 1 && yarn run test:exports:docker && yarn workspace @langchain/core run release && echo '🔗 Open https://github.com/langchain-ai/langchainjs/compare/release?expand=1 and merge the release PR'", "example": "yarn workspace examples start", "precommit": "turbo run precommit", "docs": "yarn workspace core_docs start", diff --git a/turbo.json b/turbo.json index 6443a3e3f0a0..6ca65c291884 100644 --- a/turbo.json +++ b/turbo.json @@ -4,15 +4,15 @@ "**/.env" ], "pipeline": { - "langchain-core#build": {}, + "@langchain/core#build": {}, "libs/langchain-anthropic#build": { "dependsOn": [ - "langchain-core#build" + "@langchain/core#build" ] }, "build": { "dependsOn": [ - "langchain-core#build", + "@langchain/core#build", "^build" ], "outputs": [ diff --git a/yarn.lock b/yarn.lock index 68b3279a84ee..d412bf9741ac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7945,6 +7945,7 @@ __metadata: dependencies: "@anthropic-ai/sdk": ^0.10.0 "@jest/globals": ^29.5.0 + "@langchain/core": "workspace:*" "@swc/core": ^1.3.90 "@swc/jest": ^0.2.29 dpdm: ^3.12.0 @@ -7956,7 +7957,6 @@ __metadata: eslint-plugin-prettier: ^4.2.1 jest: ^29.5.0 jest-environment-node: ^29.6.4 - langchain-core: "workspace:*" prettier: ^2.8.3 release-it: ^15.10.1 rimraf: ^5.0.1 @@ -7964,6 +7964,38 @@ __metadata: languageName: unknown linkType: soft +"@langchain/core@workspace:*, @langchain/core@workspace:langchain-core": + version: 0.0.0-use.local + resolution: "@langchain/core@workspace:langchain-core" + dependencies: + "@jest/globals": ^29.5.0 + "@swc/core": ^1.3.90 + "@swc/jest": ^0.2.29 + ansi-styles: ^5.0.0 + camelcase: 6 + decamelize: 1.2.0 + dpdm: ^3.12.0 + eslint: ^8.33.0 + eslint-config-airbnb-base: ^15.0.0 + eslint-config-prettier: ^8.6.0 + eslint-plugin-import: ^2.27.5 + eslint-plugin-no-instanceof: ^1.0.1 + eslint-plugin-prettier: ^4.2.1 + jest: ^29.5.0 + jest-environment-node: ^29.6.4 + js-tiktoken: ^1.0.7 + langsmith: ^0.0.48 + p-queue: ^6.6.2 + p-retry: 4 + prettier: ^2.8.3 + release-it: ^15.10.1 + rimraf: ^5.0.1 + typescript: ^5.0.0 + uuid: ^9.0.0 + zod: ^3.22.3 + languageName: unknown + linkType: soft + "@leichtgewicht/ip-codec@npm:^2.0.1": version: 2.0.4 resolution: "@leichtgewicht/ip-codec@npm:2.0.4" @@ -22237,38 +22269,6 @@ __metadata: languageName: node linkType: hard -"langchain-core@workspace:*, langchain-core@workspace:langchain-core": - version: 0.0.0-use.local - resolution: "langchain-core@workspace:langchain-core" - dependencies: - "@jest/globals": ^29.5.0 - "@swc/core": ^1.3.90 - "@swc/jest": ^0.2.29 - ansi-styles: ^5.0.0 - camelcase: 6 - decamelize: 1.2.0 - dpdm: ^3.12.0 - eslint: ^8.33.0 - eslint-config-airbnb-base: ^15.0.0 - eslint-config-prettier: ^8.6.0 - eslint-plugin-import: ^2.27.5 - eslint-plugin-no-instanceof: ^1.0.1 - eslint-plugin-prettier: ^4.2.1 - jest: ^29.5.0 - jest-environment-node: ^29.6.4 - js-tiktoken: ^1.0.7 - langsmith: ^0.0.48 - p-queue: ^6.6.2 - p-retry: 4 - prettier: ^2.8.3 - release-it: ^15.10.1 - rimraf: ^5.0.1 - typescript: ^5.0.0 - uuid: ^9.0.0 - zod: ^3.22.3 - languageName: unknown - linkType: soft - "langchain@workspace:*, langchain@workspace:langchain": version: 0.0.0-use.local resolution: "langchain@workspace:langchain" @@ -22298,6 +22298,7 @@ __metadata: "@huggingface/inference": ^2.6.4 "@jest/globals": ^29.5.0 "@langchain/anthropic": "workspace:*" + "@langchain/core": "workspace:*" "@mozilla/readability": ^0.4.4 "@notionhq/client": ^2.2.10 "@opensearch-project/opensearch": ^2.2.0 @@ -22381,7 +22382,6 @@ __metadata: js-yaml: ^4.1.0 jsdom: ^22.1.0 jsonpointer: ^5.0.1 - langchain-core: "workspace:*" langchainhub: ~0.0.6 langsmith: ~0.0.48 llmonitor: ^0.5.9