t;] as string;
    if (!sharedState.summary) {
      sharedState.summary = {};
    }
    sharedState.summary[filename] = execResult;
    return DEFAULT_ACTION; // or just &quot;default&quot;
  }
}

// Example usage:
const summarizeNode = new SummarizeFile({ maxRetries: 3, wait: 10 });
summarizeNode.setParams({ filename: &quot;test_file.txt&quot; });

// Prepare a shared state with data
const shared: any = {
  data: {
    &quot;test_file.txt&quot;: &quot;Once upon a time in a faraway land...&quot;,
  },
};

