Skip to contents

Verifies the minimum a persona frame needs: it is a data frame with at least one row. It also reports, via a message when verbose, whether the optional dictionary and demographic_fields attributes are present. It is tolerant: a frame without those attributes is still usable (handles stand in for questions, and demographics are guessed from common names).

Usage

llm_validate_persona_frame(x, verbose = FALSE)

Arguments

x

A candidate persona data frame.

verbose

Logical; if TRUE, report which optional attributes are present.

Value

TRUE invisibly if x is a usable persona frame; otherwise it raises an error.