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.
Arguments
- text
Character vector of inputs.
- schema
List. JSON Schema object.
- n
Integer. Number of repeated extractions.
- ...
Additional arguments passed to
foundry_extract().
Examples
if (FALSE) { # \dontrun{
schema <- foundry_schema(label = schema_enum(c("yes", "no")))
foundry_consistency(c("Example text"), schema, n = 3)
} # }