MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / resolveFlowObjValue

Function resolveFlowObjValue

packages/components/src/utils.ts:1334–1347  ·  view source on GitHub ↗
(obj: any, sourceObj: any)

Source from the content-addressed store, hash-verified

1332 * @returns {any}
1333 */
1334export const resolveFlowObjValue = (obj: any, sourceObj: any): any => {
1335 if (typeof obj === 'object' && obj !== null) {
1336 const resolved: any = Array.isArray(obj) ? [] : {}
1337 for (const key in obj) {
1338 const value = obj[key]
1339 resolved[key] = resolveFlowObjValue(value, sourceObj)
1340 }
1341 return resolved
1342 } else if (typeof obj === 'string' && obj.startsWith('$flow')) {
1343 return customGet(sourceObj, obj)
1344 } else {
1345 return obj
1346 }
1347}
1348
1349export const handleDocumentLoaderOutput = (docs: Document[], output: string) => {
1350 if (output === 'document') {

Callers 1

funcMethod · 0.90

Calls 1

customGetFunction · 0.90

Tested by

no test coverage detected