Like flowChart(), but the ROOT stage is a SELECTOR — it runs first and its branches attach directly to it (no separate seed stage). Returns a SelectorFnList; declare branches then call .end() to get the builder back for any subsequent stages.
flowChart()
SelectorFnList
.end()
Optional
flowChartSelector<MyState>('Context', contextSelectorFn, 'context') .addSubFlowChartBranch('sf-system-prompt', sysSlot, 'System Prompt', {...}) .addSubFlowChartBranch('sf-messages', msgSlot, 'Messages', {...}) .end() .addFunction('messageAPI', assembleFn, 'message-api') .build(); Copy
flowChartSelector<MyState>('Context', contextSelectorFn, 'context') .addSubFlowChartBranch('sf-system-prompt', sysSlot, 'System Prompt', {...}) .addSubFlowChartBranch('sf-messages', msgSlot, 'Messages', {...}) .end() .addFunction('messageAPI', assembleFn, 'message-api') .build();
Like
flowChart(), but the ROOT stage is a SELECTOR — it runs first and its branches attach directly to it (no separate seed stage). Returns aSelectorFnList; declare branches then call.end()to get the builder back for any subsequent stages.