Skip to contents

Convenience function to create a Trial record with auto-generated ID.

Usage

create_trial(optimizer_name, params = list(), trial_id = NULL, notes = "")

Arguments

optimizer_name

Name of the optimizer.

params

List of parameters for this trial.

trial_id

Optional trial ID. If NULL, auto-generated.

notes

Optional notes.

Value

A Trial object.

Examples

trial <- create_trial(
  optimizer_name = "BootstrapFewShot",
  params = list(max_demos = 4, temperature = 0.7)
)