Skip to contents

Create the AskUserForm tool

Usage

ask_user_form_tool(ask_form_fn = NULL, async = FALSE)

Arguments

ask_form_fn

Function or NULL. If provided, called with (title, fields, submit_label) and returns (a promise of) a list with submitted (logical) and values (named list). Used by the Shiny UI.

async

Logical. Build the coro::async variant that awaits the promise from ask_form_fn (Shiny, stream_async()); FALSE for the synchronous CLI path.

Value

An ellmer::ToolDef.

See also