From 8dfbd4f9bb4d2043e7921526da7ced05636a8a36 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Wed, 22 Nov 2023 20:39:14 -0800 Subject: [PATCH 1/2] Fix small core serialization issue --- langchain-core/package.json | 2 +- langchain-core/src/prompt_values.ts | 2 ++ langchain/package.json | 2 +- libs/langchain-anthropic/package.json | 2 +- libs/langchain-openai/package.json | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/langchain-core/package.json b/langchain-core/package.json index 9739eb621b7b..45ee433c91e0 100644 --- a/langchain-core/package.json +++ b/langchain-core/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/core", - "version": "0.0.0", + "version": "0.0.1", "description": "Core LangChain.js abstractions and schemas", "type": "module", "engines": { diff --git a/langchain-core/src/prompt_values.ts b/langchain-core/src/prompt_values.ts index 2d8e1117da22..1295774b97d6 100644 --- a/langchain-core/src/prompt_values.ts +++ b/langchain-core/src/prompt_values.ts @@ -21,6 +21,8 @@ export abstract class BasePromptValue extends Serializable { export class StringPromptValue extends BasePromptValue { lc_namespace = ["langchain_core", "prompt_values"]; + lc_serializable = true; + value: string; constructor(value: string) { diff --git a/langchain/package.json b/langchain/package.json index fc74988dd192..4c99aa23fa78 100644 --- a/langchain/package.json +++ b/langchain/package.json @@ -1381,7 +1381,7 @@ }, "dependencies": { "@langchain/anthropic": "^0.0.2", - "@langchain/core": "^0.0.0", + "@langchain/core": "^0.0.1", "@langchain/openai": "^0.0.0", "binary-extensions": "^2.2.0", "expr-eval": "^2.0.2", diff --git a/libs/langchain-anthropic/package.json b/libs/langchain-anthropic/package.json index e294adb55d7d..7870f9c85ac2 100644 --- a/libs/langchain-anthropic/package.json +++ b/libs/langchain-anthropic/package.json @@ -33,7 +33,7 @@ "license": "MIT", "dependencies": { "@anthropic-ai/sdk": "^0.10.0", - "@langchain/core": "^0.0.0" + "@langchain/core": "^0.0.1" }, "devDependencies": { "@jest/globals": "^29.5.0", diff --git a/libs/langchain-openai/package.json b/libs/langchain-openai/package.json index ec1e62fd9750..a967c13f7e77 100644 --- a/libs/langchain-openai/package.json +++ b/libs/langchain-openai/package.json @@ -32,7 +32,7 @@ "author": "LangChain", "license": "MIT", "dependencies": { - "@langchain/core": "^0.0.0", + "@langchain/core": "^0.0.1", "js-tiktoken": "^1.0.7", "openai": "^4.19.0", "zod-to-json-schema": "3.20.3" From 8e5f99e81eb7088c0ce36caacfb38d787a1503bb Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Wed, 22 Nov 2023 21:02:05 -0800 Subject: [PATCH 2/2] Bump --- langchain/package.json | 4 ++-- libs/langchain-anthropic/package.json | 4 ++-- libs/langchain-openai/package.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/langchain/package.json b/langchain/package.json index 4c99aa23fa78..628381783036 100644 --- a/langchain/package.json +++ b/langchain/package.json @@ -1380,9 +1380,9 @@ } }, "dependencies": { - "@langchain/anthropic": "^0.0.2", + "@langchain/anthropic": "^0.0.3", "@langchain/core": "^0.0.1", - "@langchain/openai": "^0.0.0", + "@langchain/openai": "^0.0.1", "binary-extensions": "^2.2.0", "expr-eval": "^2.0.2", "flat": "^5.0.2", diff --git a/libs/langchain-anthropic/package.json b/libs/langchain-anthropic/package.json index 7870f9c85ac2..3dee717d9b20 100644 --- a/libs/langchain-anthropic/package.json +++ b/libs/langchain-anthropic/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/anthropic", - "version": "0.0.2", + "version": "0.0.3", "description": "Anthropic integrations for LangChain.js", "type": "module", "engines": { @@ -33,7 +33,7 @@ "license": "MIT", "dependencies": { "@anthropic-ai/sdk": "^0.10.0", - "@langchain/core": "^0.0.1" + "@langchain/core": "~0.0.1" }, "devDependencies": { "@jest/globals": "^29.5.0", diff --git a/libs/langchain-openai/package.json b/libs/langchain-openai/package.json index a967c13f7e77..3f348059ec94 100644 --- a/libs/langchain-openai/package.json +++ b/libs/langchain-openai/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/openai", - "version": "0.0.0", + "version": "0.0.1", "description": "OpenAI integrations for LangChain.js", "type": "module", "engines": { @@ -32,7 +32,7 @@ "author": "LangChain", "license": "MIT", "dependencies": { - "@langchain/core": "^0.0.1", + "@langchain/core": "~0.0.1", "js-tiktoken": "^1.0.7", "openai": "^4.19.0", "zod-to-json-schema": "3.20.3"