Package: LLMR.shiny 0.1.1

Ali Sanaei

LLMR.shiny: Shared 'Shiny' Substrate for 'LLMR' Family GUIs

Provides the shared shell that 'LLMR'-family graphical interfaces are built on. It includes provider and model selection, environment-variable-based API-key handling, demo and live runners, session cost accounting, error banners, comma-separated-value upload and column mapping, and display helpers for the shared diagnostics() and report() generics. Graphical interfaces for the method packages import these helpers rather than each reimplementing them, so a fix here is available to every interface that depends on it.

Authors:Ali Sanaei [aut, cre]

LLMR.shiny_0.1.1.tar.gz
LLMR.shiny_0.1.1.tar.gz(r-4.7-any)LLMR.shiny_0.1.1.tar.gz(r-4.6-any)
LLMR.shiny_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
LLMR.shiny/json (API)

# Install 'LLMR.shiny' in R:
install.packages('LLMR.shiny', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/asanaei/llmr.shiny/issues

On CRAN:

Conda:

1.70 score 40 exports 30 dependencies

Last updated from:575a77b9c5. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK136
source / vignettesOK202
linux-release-x86_64OK133
wasm-releaseOK125

Exports:%||%annotate_demo_resultas_display_tablebuild_llm_configbuild_runnercolumn_names_for_mappingcondition_categorycost_add_usagecost_emptycost_set_plancost_tiledemo_banner_uidemo_noticedemo_runnerdiagnostics_tableextract_token_countsgithub_remote_forinstall_guidance_uiis_auth_erroris_demo_resultkey_statekey_state_tilelive_run_blocker_uillmr_error_bannermap_columnspersona_selector_serverpersona_selector_uipkg_availableprovider_choicesprovider_default_modelprovider_display_nameprovider_env_varsprovider_registryread_csv_pathread_csv_uploadreport_textsafe_llmr_callshell_contextshell_sidebarvalidate_column_mapping

Dependencies:base64encbslibcachemclicommonmarkdigestfastmapfontawesomefsgluehtmltoolshttpuvjquerylibjsonlitelaterlifecyclemagrittrmemoisemimeotelpromisesR6rappdirsRcpprlangsassshinysourcetoolswithrxtable

Readme and manuals

Help Manual

Help pageTopics
Mark a result as a demo resultannotate_demo_result
Coerce an arbitrary result to a display tableas_display_table
Build an LLM config, falling back to a plain list without LLMRbuild_llm_config
Build a runner for a modebuild_runner
Column names of a data frame, for a mapping select inputcolumn_names_for_mapping
Error category of a caught conditioncondition_category
Add realized usage to a cost recordcost_add_usage
An empty cost-accounting recordcost_empty
Record a planned run on a cost recordcost_set_plan
A value box reporting session usagecost_tile
A banner announcing a demo resultdemo_banner_ui
Demo-result notice stringdemo_notice
A deterministic offline demo runnerdemo_runner
Render an object's 'diagnostics()' as a display tablediagnostics_table
Extract call/token counts from a result frameextract_token_counts
GitHub remote for an LLMR-family packagegithub_remote_for
Install-guidance card for a missing packageinstall_guidance_ui
Is a caught condition an auth error?is_auth_error
Is a result a demo result?is_demo_result
Key state for a provider, read from the environment onlykey_state
A tile reporting key state (never the key value)key_state_tile
A banner shown when a live run is blocked for want of a keylive_run_blocker_ui
Map a caught LLM error to a banner cardllmr_error_banner
Map user columns to 'text' (and optionally 'labels')map_columns
Null-coalescing operator%||% null-coalesce
Server for the persona selector modulepersona_selector_server
UI for the persona selector modulepersona_selector_ui
Is a package installed?pkg_available
Provider choices for a select inputprovider_choices
Default model for a providerprovider_default_model
Display name for a providerprovider_display_name
Environment-variable names a provider's key may live inprovider_env_vars
Provider registryprovider_registry
Read a CSV from a pathread_csv_path
Read an uploaded CSV (a Shiny fileInput value)read_csv_upload
Render an object's 'report()' prose, falling back to print outputreport_text
Run an expression, capturing any error as a bannersafe_llmr_call
Wire the standard sidebar and return the shared reactive contextshell_context
The standard GUI sidebar: provider, model, mode, key tile, cost tileshell_sidebar
Validate a column mappingvalidate_column_mapping