Create an optimization trial record with an automatically generated ID.
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.
- trace_context
A named, JSON-compatible correlation context. When omitted during
compile(), the active compilation context is inherited; supplylist()explicitly to clear it.
Examples
trial <- create_trial(
optimizer_name = "BootstrapFewShot",
params = list(max_demos = 4, temperature = 0.7)
)