footprintjs - v11.2.0
    Preparing search index...

    Function flowChartSelector

    • 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.

      Type Parameters

      • TOut = any
      • TScope = any

      Parameters

      Returns SelectorFnList<TOut, TScope>

      flowChartSelector<MyState>('Context', contextSelectorFn, 'context')
      .addSubFlowChartBranch('sf-system-prompt', sysSlot, 'System Prompt', {...})
      .addSubFlowChartBranch('sf-messages', msgSlot, 'Messages', {...})
      .end()
      .addFunction('messageAPI', assembleFn, 'message-api')
      .build();