Skip to content

Commit 03434d4

Browse files
fix(langchain): remove getContextVariable and setContextVariable from langchain (#9330)
1 parent 2a7a3dd commit 03434d4

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

examples/src/createAgent/accessExternalContextInTools.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@
2222
*/
2323

2424
import fs from "node:fs/promises";
25+
import { createAgent, tool } from "langchain";
2526
import {
26-
createAgent,
27-
tool,
28-
setContextVariable,
2927
getContextVariable,
30-
} from "langchain";
28+
setContextVariable,
29+
} from "@langchain/core/context";
3130
import { z } from "zod";
3231

3332
/**

libs/langchain/src/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@ export * from "./agents/middleware/index.js";
4848
*/
4949
export { InMemoryStore } from "@langchain/core/stores";
5050

51-
/**
52-
* LangChain Context
53-
*/
54-
export {
55-
setContextVariable,
56-
getContextVariable,
57-
} from "@langchain/core/context";
58-
5951
/**
6052
* LangChain Documents
6153
*/

0 commit comments

Comments
 (0)