Skip to contents

Shell

shell_sidebar()
The standard GUI sidebar: provider, model, mode, key tile, usage tile
shell_context()
Wire the standard sidebar and return the shared reactive context

Providers and keys

provider_registry()
Provider registry
provider_choices()
Provider choices for a select input
provider_default_model()
Default model for a provider
provider_display_name()
Display name for a provider
provider_env_vars()
Environment-variable names a provider's key may live in
key_state()
Key state for a provider, read from the environment only
key_state_tile()
A tile reporting key state (never the key value)
live_run_blocker_ui()
A banner shown when a live run is blocked for want of a key

Runners and demo results

build_llm_config()
Build an LLM config
build_runner()
Build a runner for a mode
demo_runner() print(<llmrshiny_demo_result>)
A deterministic offline demo runner
demo_notice()
Demo-result notice string
is_demo_result()
Is a result a demo result?
demo_banner_ui()
A banner announcing a demo result
extract_token_counts()
Extract call/token counts from a result frame

Session usage

usage_empty()
An empty usage record
usage_set_plan()
Record a planned run on a usage record
usage_add()
Add realized usage to a usage record
usage_tile()
A value box reporting session usage

Display and errors

report_text()
Render an object's report() prose, falling back to print output
diagnostics_table()
Render an object's diagnostics() as a display table
as_display_table()
Coerce an arbitrary result to a display table
condition_category()
Error category of a caught condition
is_auth_error()
Is a caught condition an auth error?
llmr_error_banner()
Map a caught LLM error to a banner card
safe_llmr_call()
Run an expression, capturing any error as a banner
install_guidance_ui()
Install-guidance card for a missing package

Data input and mapping

read_csv_upload()
Read an uploaded CSV (a Shiny fileInput value)
read_csv_path()
Read a CSV from a path
column_names_for_mapping()
Column names of a data frame, for a mapping select input
validate_column_mapping()
Validate a column mapping
map_columns()
Map user columns to text (and optionally labels)

Persona selection

persona_selector_ui()
UI for the persona selector module
persona_selector_server()
Server for the persona selector module