@langchain/core 1.1.30 → 1.1.32
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.
- package/CHANGELOG.md +27 -0
- package/dist/language_models/base.cjs +1 -1
- package/dist/language_models/base.js +1 -1
- package/dist/load/import_map.cjs +2 -0
- package/dist/load/import_map.cjs.map +1 -1
- package/dist/load/import_map.js +4 -2
- package/dist/load/import_map.js.map +1 -1
- package/dist/messages/ai.cjs.map +1 -1
- package/dist/messages/ai.js.map +1 -1
- package/dist/messages/base.cjs +4 -3
- package/dist/messages/base.cjs.map +1 -1
- package/dist/messages/base.d.cts.map +1 -1
- package/dist/messages/base.d.ts.map +1 -1
- package/dist/messages/base.js +4 -3
- package/dist/messages/base.js.map +1 -1
- package/dist/messages/block_translators/google.cjs +16 -1
- package/dist/messages/block_translators/google.cjs.map +1 -1
- package/dist/messages/block_translators/google.js +16 -1
- package/dist/messages/block_translators/google.js.map +1 -1
- package/dist/runnables/base.cjs +1 -1
- package/dist/runnables/base.cjs.map +1 -1
- package/dist/runnables/base.js +2 -2
- package/dist/runnables/base.js.map +1 -1
- package/dist/{utils/testing → testing}/fake_model_builder.cjs +75 -23
- package/dist/testing/fake_model_builder.cjs.map +1 -0
- package/dist/testing/fake_model_builder.d.cts +138 -0
- package/dist/testing/fake_model_builder.d.cts.map +1 -0
- package/dist/testing/fake_model_builder.d.ts +139 -0
- package/dist/testing/fake_model_builder.d.ts.map +1 -0
- package/dist/{utils/testing → testing}/fake_model_builder.js +75 -24
- package/dist/testing/fake_model_builder.js.map +1 -0
- package/dist/testing/index.cjs +43 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +3 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.js +24 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/matchers.cjs +213 -0
- package/dist/testing/matchers.cjs.map +1 -0
- package/dist/testing/matchers.d.cts +94 -0
- package/dist/testing/matchers.d.cts.map +1 -0
- package/dist/testing/matchers.d.ts +94 -0
- package/dist/testing/matchers.d.ts.map +1 -0
- package/dist/testing/matchers.js +203 -0
- package/dist/testing/matchers.js.map +1 -0
- package/dist/tools/index.cjs +4 -0
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.d.cts +22 -21
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +22 -21
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/types.cjs.map +1 -1
- package/dist/tools/types.d.cts +13 -5
- package/dist/tools/types.d.cts.map +1 -1
- package/dist/tools/types.d.ts +13 -5
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js.map +1 -1
- package/dist/utils/testing/index.cjs +1 -4
- package/dist/utils/testing/index.cjs.map +1 -1
- package/dist/utils/testing/index.d.cts +1 -2
- package/dist/utils/testing/index.d.ts +1 -2
- package/dist/utils/testing/index.js +2 -4
- package/dist/utils/testing/index.js.map +1 -1
- package/package.json +16 -4
- package/dist/utils/testing/fake_model_builder.cjs.map +0 -1
- package/dist/utils/testing/fake_model_builder.d.cts +0 -87
- package/dist/utils/testing/fake_model_builder.d.cts.map +0 -1
- package/dist/utils/testing/fake_model_builder.d.ts +0 -88
- package/dist/utils/testing/fake_model_builder.d.ts.map +0 -1
- package/dist/utils/testing/fake_model_builder.js.map +0 -1
package/dist/runnables/base.js
CHANGED
|
@@ -15,7 +15,7 @@ import { getSchemaDescription, interopParseAsync, isSimpleStringZodSchema } from
|
|
|
15
15
|
import { Graph } from "./graph.js";
|
|
16
16
|
import { convertToHttpEventStream } from "./wrappers.js";
|
|
17
17
|
import { consumeAsyncIterableInContext, consumeIteratorInContext, isAsyncIterable, isIterableIterator, isIterator } from "./iter.js";
|
|
18
|
-
import {
|
|
18
|
+
import { v7 } from "uuid";
|
|
19
19
|
import { isTraceableFunction } from "langsmith/singletons/traceable";
|
|
20
20
|
import { z } from "zod/v3";
|
|
21
21
|
|
|
@@ -368,7 +368,7 @@ var Runnable = class extends Serializable {
|
|
|
368
368
|
autoClose: false
|
|
369
369
|
});
|
|
370
370
|
const config = ensureConfig(options);
|
|
371
|
-
const runId = config.runId ??
|
|
371
|
+
const runId = config.runId ?? v7();
|
|
372
372
|
config.runId = runId;
|
|
373
373
|
const callbacks = config.callbacks;
|
|
374
374
|
if (callbacks === void 0) config.callbacks = [eventStreamer];
|