1 |
- {"ast":null,"code":"import _asyncToGenerator from \"F:/workspace/202226701027/huinongbao-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { CallbackManager, ensureHandler } from \"../callbacks/manager.js\";\nimport { AsyncLocalStorageProviderSingleton } from \"../singletons/index.js\";\nexport const DEFAULT_RECURSION_LIMIT = 25;\nexport function getCallbackManagerForConfig(_x) {\n return _getCallbackManagerForConfig.apply(this, arguments);\n}\nfunction _getCallbackManagerForConfig() {\n _getCallbackManagerForConfig = _asyncToGenerator(function* (config) {\n return CallbackManager._configureSync(config === null || config === void 0 ? void 0 : config.callbacks, undefined, config === null || config === void 0 ? void 0 : config.tags, undefined, config === null || config === void 0 ? void 0 : config.metadata);\n });\n return _getCallbackManagerForConfig.apply(this, arguments);\n}\nexport function mergeConfigs(...configs) {\n // We do not want to call ensureConfig on the empty state here as this may cause\n // double loading of callbacks if async local storage is being used.\n const copy = {};\n for (const options of configs.filter(c => !!c)) {\n for (const key of Object.keys(options)) {\n if (key === \"metadata\") {\n copy[key] = {\n ...copy[key],\n ...options[key]\n };\n } else if (key === \"tags\") {\n var _copy$key, _options$key;\n const baseKeys = (_copy$key = copy[key]) !== null && _copy$key !== void 0 ? _copy$key : [];\n copy[key] = [...new Set(baseKeys.concat((_options$key = options[key]) !== null && _options$key !== void 0 ? _options$key : []))];\n } else if (key === \"configurable\") {\n copy[key] = {\n ...copy[key],\n ...options[key]\n };\n } else if (key === \"timeout\") {\n if (copy.timeout === undefined) {\n copy.timeout = options.timeout;\n } else if (options.timeout !== undefined) {\n copy.timeout = Math.min(copy.timeout, options.timeout);\n }\n } else if (key === \"signal\") {\n if (copy.signal === undefined) {\n copy.signal = options.signal;\n } else if (options.signal !== undefined) {\n if (\"any\" in AbortSignal) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n copy.signal = AbortSignal.any([copy.signal, options.signal]);\n } else {\n copy.signal = options.signal;\n }\n }\n } else if (key === \"callbacks\") {\n const baseCallbacks = copy.callbacks;\n const providedCallbacks = options.callbacks;\n // callbacks can be either undefined, Array<handler> or manager\n // so merging two callbacks values has 6 cases\n if (Array.isArray(providedCallbacks)) {\n if (!baseCallbacks) {\n copy.callbacks = providedCallbacks;\n } else if (Array.isArray(baseCallbacks)) {\n copy.callbacks = baseCallbacks.concat(providedCallbacks);\n } else {\n // baseCallbacks is a manager\n const manager = baseCallbacks.copy();\n for (const callback of providedCallbacks) {\n manager.addHandler(ensureHandler(callback), true);\n }\n copy.callbacks = manager;\n }\n } else if (providedCallbacks) {\n // providedCallbacks is a manager\n if (!baseCallbacks) {\n copy.callbacks = providedCallbacks;\n } else if (Array.isArray(baseCallbacks)) {\n const manager = providedCallbacks.copy();\n for (const callback of baseCallbacks) {\n manager.addHandler(ensureHandler(callback), true);\n }\n copy.callbacks = manager;\n } else {\n // baseCallbacks is also a manager\n copy.callbacks = new CallbackManager(providedCallbacks._parentRunId, {\n handlers: baseCallbacks.handlers.concat(providedCallbacks.handlers),\n inheritableHandlers: baseCallbacks.inheritableHandlers.concat(providedCallbacks.inheritableHandlers),\n tags: Array.from(new Set(baseCallbacks.tags.concat(providedCallbacks.tags))),\n inheritableTags: Array.from(new Set(baseCallbacks.inheritableTags.concat(providedCallbacks.inheritableTags))),\n metadata: {\n ...baseCallbacks.metadata,\n ...providedCallbacks.metadata\n }\n });\n }\n }\n } else {\n var _options$typedKey;\n const typedKey = key;\n copy[typedKey] = (_options$typedKey = options[typedKey]) !== null && _options$typedKey !== void 0 ? _options$typedKey : copy[typedKey];\n }\n }\n }\n return copy;\n}\nconst PRIMITIVES = new Set([\"string\", \"number\", \"boolean\"]);\n/**\n * Ensure that a passed config is an object with all required keys present.\n */\nexport function ensureConfig(config) {\n var _empty;\n const implicitConfig = AsyncLocalStorageProviderSingleton.getRunnableConfig();\n let empty = {\n tags: [],\n metadata: {},\n recursionLimit: 25,\n runId: undefined\n };\n if (implicitConfig) {\n // Don't allow runId and runName to be loaded implicitly, as this can cause\n // child runs to improperly inherit their parents' run ids.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {\n runId,\n runName,\n ...rest\n } = implicitConfig;\n empty = Object.entries(rest).reduce(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (currentConfig, [key, value]) => {\n if (value !== undefined) {\n // eslint-disable-next-line no-param-reassign\n currentConfig[key] = value;\n }\n return currentConfig;\n }, empty);\n }\n if (config) {\n empty = Object.entries(config).reduce(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (currentConfig, [key, value]) => {\n if (value !== undefined) {\n // eslint-disable-next-line no-param-reassign\n currentConfig[key] = value;\n }\n return currentConfig;\n }, empty);\n }\n if ((_empty = empty) !== null && _empty !== void 0 && _empty.configurable) {\n for (const key of Object.keys(empty.configurable)) {\n var _empty$metadata;\n if (PRIMITIVES.has(typeof empty.configurable[key]) && !((_empty$metadata = empty.metadata) !== null && _empty$metadata !== void 0 && _empty$metadata[key])) {\n if (!empty.metadata) {\n empty.metadata = {};\n }\n empty.metadata[key] = empty.configurable[key];\n }\n }\n }\n if (empty.timeout !== undefined) {\n if (empty.timeout <= 0) {\n throw new Error(\"Timeout must be a positive number\");\n }\n const timeoutSignal = AbortSignal.timeout(empty.timeout);\n if (empty.signal !== undefined) {\n if (\"any\" in AbortSignal) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n empty.signal = AbortSignal.any([empty.signal, timeoutSignal]);\n }\n } else {\n empty.signal = timeoutSignal;\n }\n delete empty.timeout;\n }\n return empty;\n}\n/**\n * Helper function that patches runnable configs with updated properties.\n */\nexport function patchConfig(config = {}, {\n callbacks,\n maxConcurrency,\n recursionLimit,\n runName,\n configurable,\n runId\n} = {}) {\n const newConfig = ensureConfig(config);\n if (callbacks !== undefined) {\n /**\n * If we're replacing callbacks we need to unset runName\n * since that should apply only to the same run as the original callbacks\n */\n delete newConfig.runName;\n newConfig.callbacks = callbacks;\n }\n if (recursionLimit !== undefined) {\n newConfig.recursionLimit = recursionLimit;\n }\n if (maxConcurrency !== undefined) {\n newConfig.maxConcurrency = maxConcurrency;\n }\n if (runName !== undefined) {\n newConfig.runName = runName;\n }\n if (configurable !== undefined) {\n newConfig.configurable = {\n ...newConfig.configurable,\n ...configurable\n };\n }\n if (runId !== undefined) {\n delete newConfig.runId;\n }\n return newConfig;\n}","map":{"version":3,"names":["CallbackManager","ensureHandler","AsyncLocalStorageProviderSingleton","DEFAULT_RECURSION_LIMIT","getCallbackManagerForConfig","_x","_getCallbackManagerForConfig","apply","arguments","_asyncToGenerator","config","_configureSync","callbacks","undefined","tags","metadata","mergeConfigs","configs","copy","options","filter","c","key","Object","keys","_copy$key","_options$key","baseKeys","Set","concat","timeout","Math","min","signal","AbortSignal","any","baseCallbacks","providedCallbacks","Array","isArray","manager","callback","addHandler","_parentRunId","handlers","inheritableHandlers","from","inheritableTags","_options$typedKey","typedKey","PRIMITIVES","ensureConfig","_empty","implicitConfig","getRunnableConfig","empty","recursionLimit","runId","runName","rest","entries","reduce","currentConfig","value","configurable","_empty$metadata","has","Error","timeoutSignal","patchConfig","maxConcurrency","newConfig"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@langchain/core/dist/runnables/config.js"],"sourcesContent":["import { CallbackManager, ensureHandler } from \"../callbacks/manager.js\";\nimport { AsyncLocalStorageProviderSingleton } from \"../singletons/index.js\";\nexport const DEFAULT_RECURSION_LIMIT = 25;\nexport async function getCallbackManagerForConfig(config) {\n return CallbackManager._configureSync(config?.callbacks, undefined, config?.tags, undefined, config?.metadata);\n}\nexport function mergeConfigs(...configs) {\n // We do not want to call ensureConfig on the empty state here as this may cause\n // double loading of callbacks if async local storage is being used.\n const copy = {};\n for (const options of configs.filter((c) => !!c)) {\n for (const key of Object.keys(options)) {\n if (key === \"metadata\") {\n copy[key] = { ...copy[key], ...options[key] };\n }\n else if (key === \"tags\") {\n const baseKeys = copy[key] ?? [];\n copy[key] = [...new Set(baseKeys.concat(options[key] ?? []))];\n }\n else if (key === \"configurable\") {\n copy[key] = { ...copy[key], ...options[key] };\n }\n else if (key === \"timeout\") {\n if (copy.timeout === undefined) {\n copy.timeout = options.timeout;\n }\n else if (options.timeout !== undefined) {\n copy.timeout = Math.min(copy.timeout, options.timeout);\n }\n }\n else if (key === \"signal\") {\n if (copy.signal === undefined) {\n copy.signal = options.signal;\n }\n else if (options.signal !== undefined) {\n if (\"any\" in AbortSignal) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n copy.signal = AbortSignal.any([\n copy.signal,\n options.signal,\n ]);\n }\n else {\n copy.signal = options.signal;\n }\n }\n }\n else if (key === \"callbacks\") {\n const baseCallbacks = copy.callbacks;\n const providedCallbacks = options.callbacks;\n // callbacks can be either undefined, Array<handler> or manager\n // so merging two callbacks values has 6 cases\n if (Array.isArray(providedCallbacks)) {\n if (!baseCallbacks) {\n copy.callbacks = providedCallbacks;\n }\n else if (Array.isArray(baseCallbacks)) {\n copy.callbacks = baseCallbacks.concat(providedCallbacks);\n }\n else {\n // baseCallbacks is a manager\n const manager = baseCallbacks.copy();\n for (const callback of providedCallbacks) {\n manager.addHandler(ensureHandler(callback), true);\n }\n copy.callbacks = manager;\n }\n }\n else if (providedCallbacks) {\n // providedCallbacks is a manager\n if (!baseCallbacks) {\n copy.callbacks = providedCallbacks;\n }\n else if (Array.isArray(baseCallbacks)) {\n const manager = providedCallbacks.copy();\n for (const callback of baseCallbacks) {\n manager.addHandler(ensureHandler(callback), true);\n }\n copy.callbacks = manager;\n }\n else {\n // baseCallbacks is also a manager\n copy.callbacks = new CallbackManager(providedCallbacks._parentRunId, {\n handlers: baseCallbacks.handlers.concat(providedCallbacks.handlers),\n inheritableHandlers: baseCallbacks.inheritableHandlers.concat(providedCallbacks.inheritableHandlers),\n tags: Array.from(new Set(baseCallbacks.tags.concat(providedCallbacks.tags))),\n inheritableTags: Array.from(new Set(baseCallbacks.inheritableTags.concat(providedCallbacks.inheritableTags))),\n metadata: {\n ...baseCallbacks.metadata,\n ...providedCallbacks.metadata,\n },\n });\n }\n }\n }\n else {\n const typedKey = key;\n copy[typedKey] = options[typedKey] ?? copy[typedKey];\n }\n }\n }\n return copy;\n}\nconst PRIMITIVES = new Set([\"string\", \"number\", \"boolean\"]);\n/**\n * Ensure that a passed config is an object with all required keys present.\n */\nexport function ensureConfig(config) {\n const implicitConfig = AsyncLocalStorageProviderSingleton.getRunnableConfig();\n let empty = {\n tags: [],\n metadata: {},\n recursionLimit: 25,\n runId: undefined,\n };\n if (implicitConfig) {\n // Don't allow runId and runName to be loaded implicitly, as this can cause\n // child runs to improperly inherit their parents' run ids.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { runId, runName, ...rest } = implicitConfig;\n empty = Object.entries(rest).reduce(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (currentConfig, [key, value]) => {\n if (value !== undefined) {\n // eslint-disable-next-line no-param-reassign\n currentConfig[key] = value;\n }\n return currentConfig;\n }, empty);\n }\n if (config) {\n empty = Object.entries(config).reduce(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (currentConfig, [key, value]) => {\n if (value !== undefined) {\n // eslint-disable-next-line no-param-reassign\n currentConfig[key] = value;\n }\n return currentConfig;\n }, empty);\n }\n if (empty?.configurable) {\n for (const key of Object.keys(empty.configurable)) {\n if (PRIMITIVES.has(typeof empty.configurable[key]) &&\n !empty.metadata?.[key]) {\n if (!empty.metadata) {\n empty.metadata = {};\n }\n empty.metadata[key] = empty.configurable[key];\n }\n }\n }\n if (empty.timeout !== undefined) {\n if (empty.timeout <= 0) {\n throw new Error(\"Timeout must be a positive number\");\n }\n const timeoutSignal = AbortSignal.timeout(empty.timeout);\n if (empty.signal !== undefined) {\n if (\"any\" in AbortSignal) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n empty.signal = AbortSignal.any([empty.signal, timeoutSignal]);\n }\n }\n else {\n empty.signal = timeoutSignal;\n }\n delete empty.timeout;\n }\n return empty;\n}\n/**\n * Helper function that patches runnable configs with updated properties.\n */\nexport function patchConfig(config = {}, { callbacks, maxConcurrency, recursionLimit, runName, configurable, runId, } = {}) {\n const newConfig = ensureConfig(config);\n if (callbacks !== undefined) {\n /**\n * If we're replacing callbacks we need to unset runName\n * since that should apply only to the same run as the original callbacks\n */\n delete newConfig.runName;\n newConfig.callbacks = callbacks;\n }\n if (recursionLimit !== undefined) {\n newConfig.recursionLimit = recursionLimit;\n }\n if (maxConcurrency !== undefined) {\n newConfig.maxConcurrency = maxConcurrency;\n }\n if (runName !== undefined) {\n newConfig.runName = runName;\n }\n if (configurable !== undefined) {\n newConfig.configurable = { ...newConfig.configurable, ...configurable };\n }\n if (runId !== undefined) {\n delete newConfig.runId;\n }\n return newConfig;\n}\n"],"mappings":";AAAA,SAASA,eAAe,EAAEC,aAAa,QAAQ,yBAAyB;AACxE,SAASC,kCAAkC,QAAQ,wBAAwB;AAC3E,OAAO,MAAMC,uBAAuB,GAAG,EAAE;AACzC,gBAAsBC,2BAA2BA,CAAAC,EAAA;EAAA,OAAAC,4BAAA,CAAAC,KAAA,OAAAC,SAAA;AAAA;AAEhD,SAAAF,6BAAA;EAAAA,4BAAA,GAAAG,iBAAA,CAFM,WAA2CC,MAAM,EAAE;IACtD,OAAOV,eAAe,CAACW,cAAc,CAACD,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEE,SAAS,EAAEC,SAAS,EAAEH,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEI,IAAI,EAAED,SAAS,EAAEH,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEK,QAAQ,CAAC;EAClH,CAAC;EAAA,OAAAT,4BAAA,CAAAC,KAAA,OAAAC,SAAA;AAAA;AACD,OAAO,SAASQ,YAAYA,CAAC,GAAGC,OAAO,EAAE;EACrC;EACA;EACA,MAAMC,IAAI,GAAG,CAAC,CAAC;EACf,KAAK,MAAMC,OAAO,IAAIF,OAAO,CAACG,MAAM,CAAEC,CAAC,IAAK,CAAC,CAACA,CAAC,CAAC,EAAE;IAC9C,KAAK,MAAMC,GAAG,IAAIC,MAA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