Skip to contents

Reads a data file, profiles it, detects column roles, synthesizes data, and exports a zip bundle suitable for passing to an AI agent.

Usage

make_agent_bundle(
  file,
  out,
  purpose = "development",
  seed = NULL,
  overwrite = FALSE,
  ...
)

Arguments

file

Path to the input data file. Passed to read_input().

out

Path for the output zip file.

purpose

Synthesis purpose preset. Defaults to "development". See synth_spec() for valid values.

seed

Optional integer random seed for reproducible synthesis.

overwrite

Logical. When FALSE (the default), aborts if out already exists.

...

Additional arguments passed to read_input() only (e.g. encoding, sheet).

Value

Invisibly, the written bundle path.

Examples

if (FALSE) { # \dontrun{
make_agent_bundle(
  file = "path/to/data.csv",
  out  = tempfile(fileext = ".zip")
)
} # }