Function dumpOutlineResult

Dumps the outline result into a folder structure with markdown files.

  • Skips dumping if the result is invalid.
  • Creates a subfolder for each result using its resultId.
  • Writes a summary file including input parameters, generated data, and system messages.
  • Writes each user message to a separate markdown file.
  • Writes the full outline result to a markdown file.