Create the AskUserForm tool
Arguments
- ask_form_fn
Function or NULL. If provided, called with
(title, fields, submit_label)and returns (a promise of) a list withsubmitted(logical) andvalues(named list). Used by the Shiny UI.- async
Logical. Build the
coro::asyncvariant that awaits the promise fromask_form_fn(Shiny,stream_async());FALSEfor the synchronous CLI path.
Value
An ellmer::ToolDef.