MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getParents

Method getParents

packages/components/src/MetricsLogger.ts:22–35  ·  view source on GitHub ↗
(run: Run)

Source from the content-addressed store, hash-verified

20 // utility methods
21
22 getParents(run: Run) {
23 const parents: Run[] = []
24 let currentRun = run
25 while (currentRun.parent_run_id) {
26 const parent = this.runMap.get(currentRun.parent_run_id)
27 if (parent) {
28 parents.push(parent)
29 currentRun = parent
30 } else {
31 break
32 }
33 }
34 return parents
35 }
36
37 getBreadcrumbs(run: Run) {
38 const parents = this.getParents(run).reverse()

Callers 1

getBreadcrumbsMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected