footprintjs - v11.2.0
    Preparing search index...

    Class ContinuationResolver<TOut, TScope>

    Type Parameters

    • TOut = any
    • TScope = any
    Index
    • Get the next iteration number for a node and increment. Returns 0 for first visit, 1 for second, etc. Throws if maxIterations exceeded (infinite loop guard).

      Parameters

      • nodeId: string

      Returns number

    • Generate an iterated stage name for context tree. First visit: "askLLM", second: "askLLM.1", third: "askLLM.2".

      Parameters

      • baseName: string
      • iteration: number

      Returns string

    • Resolve a dynamic continuation to its target node + next StageContext WITHOUT executing it. Fires the same side effects resolve always did (iteration counting + limit, dynamicNext* logs, loop debug message, onLoop narrative), in the same order.

      Three dynamicNext patterns:

      • StageNode with fn → truly dynamic node, returned as-is (no per-node iteration tracking — it is a fresh node, not a back-edge — but the run-total dynamic-hop budget applies; see dynamicNextHops).
      • String ID → reference to an existing node, resolved via NodeResolver.
      • StageNode without fn → reference by ID, resolved via NodeResolver.

      Parameters

      Returns ResolvedContinuation<TOut, TScope>