Skip to contents

Enables structured output on each config (if not already set), runs, then parses JSON.

Usage

call_llm_par_structured(experiments, schema = NULL, .fields = NULL, ...)

Arguments

experiments

Tibble with config and messages list-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).