OptionalenableOptionalinputInput schema (Zod or JSON Schema) — declared via .contract().
OptionalloggerOptionaloutputOutput mapper — extracts response from final scope.
OptionaloutputOutput schema (Zod or JSON Schema) — declared via .contract().
OptionalscopeScope factory — auto-embedded by flowChart
OptionalsubflowsAttach a recorder for the next run. Returns a chainable RunContext.
Set redaction policy for the next run. Returns a chainable RunContext.
Execute the chart directly (bare run, no recorders).
Optionaloptions: RunOptionsThe slowest this chart can take, from its declared retry policies — timeBudget(chart, options). Checks
against the chart's declared .budget(ms) unless options.budgetMs is given.
Optionaloptions: TimeBudgetOptionsGenerate MCP tool description from chart metadata. Cached.
Generate a Mermaid flowchart diagram string from the chart's node graph.
Generate OpenAPI 3.1 spec from chart metadata + contract. Cached for no-options calls.
Optionaloptions: ChartOpenAPIOptions
FlowChart enriched with d3-style run methods and self-describing outputs.
Extends builder.FlowChart (which already carries buildTimeStructure, description, stageDescriptions, inputSchema, outputSchema, outputMapper) and adds the runtime methods attached by makeRunnable().