Skip to contents

Generate the Swedish summary text

Usage

generate_swedish_summary(
  station_summary,
  taxa_lookup = NULL,
  cruise_info = "",
  phyto_groups = NULL,
  provider = NULL,
  unclassified_fractions = NULL
)

Arguments

station_summary

Full station_summary data frame.

taxa_lookup

Optional taxa lookup table.

cruise_info

Cruise info string.

phyto_groups

Optional phytoplankton group table used to provide explicit group assignments in the prompt text.

provider

LLM provider ("openai" or "gemini"). NULL auto-detects.

unclassified_fractions

Optional per-sample fractions of unclassified detections supplied to the prompt.

Value

Character string with Swedish summary.