Enables structured output on each config (if not already set), runs, then parses JSON.
Arguments
- experiments
Tibble with
configandmessageslist-columns.- schema
Optional JSON Schema list.
- .fields
Optional fields to hoist from parsed JSON (supports nested paths).
- ...
Passed to
call_llm_par().
Value
A tibble of class llmr_experiment: the call_llm_par() result with
structured output parsed by llm_parse_structured_col() (adds
structured_ok, structured_data, and one column per hoisted field).
Details
Character messages may refer to metadata columns of experiments (any
column other than config and messages) as {column}. Each such
placeholder is replaced by that row's value, inserted as text. Nothing inside
braces is evaluated, and braces that do not name a column, such as example
JSON or LaTeX, are sent as written. Doubled braces such as {{column}} are
also sent as written, so template text from Jinja, Mustache, or Handlebars
reaches the model unchanged. A placeholder that looks like a name but
matches no column is sent as written, with a warning.
