formatLineage
formatLineage(
lineage,ast,options):FormattedLineage
Defined in: execution/lineage-formatter.ts:257
Format a RuntimeLineage into a human-readable structure.
Parameters
Section titled “Parameters”lineage
Section titled “lineage”The runtime lineage from plan execution
The plan’s AST for node descriptions
options
Section titled “options”FormatLineageOptions = {}
Formatting options
Returns
Section titled “Returns”Structured, human-readable lineage
Example
Section titled “Example”const result = await run(plan, ctx)if (!result.ok) { const formatted = formatLineage(result.lineage, plan.ast) console.log(formatted.summary) for (const step of formatted.steps) { console.log(`${step.step}. ${step.description}`) if (step.error) console.log(` Error: ${step.error}`) }}