Skip to contents

Run the same extraction multiple times and summarize how often each input receives the same structured result. Use batch execution externally for large jobs; this helper intentionally keeps the local loop simple.

Usage

foundry_consistency(text, schema, n = 3L, ...)

Arguments

text

Character vector of inputs.

schema

List. JSON Schema object.

n

Integer. Number of repeated extractions.

...

Additional arguments passed to foundry_extract().

Value

A tibble with one row per input.

Examples

if (FALSE) { # \dontrun{
schema <- foundry_schema(label = schema_enum(c("yes", "no")))
foundry_consistency(c("Example text"), schema, n = 3)
} # }