Skip to contents

Provides a bslib-styled natural-language composer allowing users to load study presets, compile English descriptions into validated spec_ir objects, iteratively refine the specification conversationally, answer structured clarifying questions for underspecified parameters, and inspect transparent rationales for every inferred default.

Usage

mod_spec_composer_ui(id, default_prompt = NULL)

Arguments

id

Module namespace ID.

default_prompt

Optional initial prompt pre-filled in the text area.

Value

A shiny.tagList containing the composer UI.

Examples

ui <- mod_spec_composer_ui("composer")
inherits(ui, "shiny.tag.list")
#> [1] TRUE