@langchain/core
Version:
Core LangChain.js abstractions and schemas
10 lines (9 loc) • 493 B
TypeScript
export interface AsyncLocalStorageInterface {
getStore: () => any | undefined;
run: <T>(store: any, callback: () => T) => T;
enterWith: (store: any) => void;
}
export declare const TRACING_ALS_KEY: unique symbol;
export declare const _CONTEXT_VARIABLES_KEY: unique symbol;
export declare const setGlobalAsyncLocalStorageInstance: (instance: AsyncLocalStorageInterface) => void;
export declare const getGlobalAsyncLocalStorageInstance: () => AsyncLocalStorageInterface | undefined;