@langchain/core 0.1.26 → 0.1.27-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -152,7 +152,7 @@ function concat(first, second) {
152
152
  const chunk = { ...first };
153
153
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
154
  for (const [key, value] of Object.entries(second)) {
155
- if (key in chunk) {
155
+ if (key in chunk && !Array.isArray(chunk[key])) {
156
156
  chunk[key] = concat(chunk[key], value);
157
157
  }
158
158
  else {
@@ -147,7 +147,7 @@ export function concat(first, second) {
147
147
  const chunk = { ...first };
148
148
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
149
149
  for (const [key, value] of Object.entries(second)) {
150
- if (key in chunk) {
150
+ if (key in chunk && !Array.isArray(chunk[key])) {
151
151
  chunk[key] = concat(chunk[key], value);
152
152
  }
153
153
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/core",
3
- "version": "0.1.26",
3
+ "version": "0.1.27-rc.1",
4
4
  "description": "Core LangChain.js abstractions and schemas",
5
5
  "type": "module",
6
6
  "engines": {