ublic async postAsync(sharedState: any, prepResult: void, execResult: void): Promise&lt;string&gt; {
    return &quot;needs_revision&quot;;
  }
}

// Define FinishNode
class FinishNode extends BaseNode {
  public async prepAsync(sharedState: any): Promise&lt;void&gt; {
    // Prepare finish data
  }

  public async execAsync(_: void): Promise&lt;void&gt; {
    // Execute finish logic
  }

  public async postAsync(sharedState: any, prepResult: void, execResult: void): Promise&lt;string&gt; {
    return DEFAU