Flow). You create it using <code>new Flow(startNode)</code> to specify the entry point. When you call <code>flow.runAsync(sharedState)</code>, it executes the first node, looks at its <code>postAsync()</code> return Action, follows the corresponding transition, and continues until there's no next node or you explicitly stop.</p>
<h3 id="example-simple-sequence">Example: Simple Sequence</h3>
<p>Here's a minimal flow of two nodes in a chain:</p>
<pre><code class="language-typescript">import { BaseNode, Flow, 