UNPKG

@langchain/core

Version:
17 lines (16 loc) • 793 B
import "./singletons/index.js"; import { AsyncLocalStorageProviderSingleton } from "./singletons/async_local_storage/index.js"; import { getContextVariable, registerConfigureHook, setContextVariable } from "./singletons/async_local_storage/context.js"; import { AsyncLocalStorage } from "node:async_hooks"; // src/context.ts /** * This file exists as a convenient public entrypoint for functionality * related to context variables. * * Because it automatically initializes AsyncLocalStorage, internal * functionality SHOULD NEVER import from this file outside of tests. */ AsyncLocalStorageProviderSingleton.initializeGlobalInstance(new AsyncLocalStorage()); const foo = "bar"; export { foo, getContextVariable, registerConfigureHook, setContextVariable }; //# sourceMappingURL=context.js.map