Skip to content

Commit

Permalink
release(core): 0.3.21 (#7323)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Dec 5, 2024
1 parent 40ec3ed commit 560e451
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion langchain-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/core",
"version": "0.3.20",
"version": "0.3.21",
"description": "Core LangChain.js abstractions and schemas",
"type": "module",
"engines": {
Expand Down
4 changes: 4 additions & 0 deletions langchain-core/src/runnables/tests/runnable_map.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ test("Should stream chunks from each step as they are produced", async () => {
const chunks = [];

for await (const chunk of stream) {
if (chunk.chat?.id !== undefined) {
chunk.chat.id = expect.any(String) as any;
chunk.chat.lc_kwargs.id = expect.any(String);
}
chunks.push(chunk);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@ test("Runnable streamEvents method with streaming nested in a RunnableLambda", a

const nestedLambdaWithOverriddenCallbacks = RunnableLambda.from(
async (_: string, config) => {
expect(config?.callbacks?.handlers).toEqual([]);
expect(
config?.callbacks?.handlers.filter(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(handler: any) => handler.name !== "langchain_tracer"
)
).toEqual([]);
}
);
await nestedLambdaWithOverriddenCallbacks.invoke(input, {
Expand Down

0 comments on commit 560e451

Please sign in to comment.