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

Method getParents

packages/components/src/handler.ts:227–240  ·  view source on GitHub ↗
(run: Run)

Source from the content-addressed store, hash-verified

225 }
226
227 getParents(run: Run) {
228 const parents: Run[] = []
229 let currentRun = run
230 while (currentRun.parent_run_id) {
231 const parent = this.runMap.get(currentRun.parent_run_id)
232 if (parent) {
233 parents.push(parent)
234 currentRun = parent
235 } else {
236 break
237 }
238 }
239 return parents
240 }
241
242 getBreadcrumbs(run: Run) {
243 const parents = this.getParents(run).reverse()

Callers 1

getBreadcrumbsMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected