files-read.ts 195 B

1234
  1. // A files.read world-input source feeding one ask.
  2. const config = await files.read("config.json");
  3. const summary = await agent("summarizer").ask<string>(`Summarize: ${config}`);
  4. return summary;