commons_app() composes commons_server() and commons_theme() into a
complete app for local development. To customize and deploy the Shiny app,
assemble the UI and server yourself with commons_theme() and
commons_server().
Arguments
- client
A
commons()agent.- ...
Extra arguments passed to
shiny::shinyApp().
Value
A shiny::shinyApp() object.
Citations and provenance
The server verifies citations against trusted calculations, context, and data documentation as the answer streams. Verified citations appear inline, with details that name the trusted source. A provenance marker follows the answer when it was produced by a trusted calculation, or when a fallback answer cites nothing verified.
Examples
if (FALSE) { # \dontrun{
agent <- commons(
ellmer::chat_anthropic(),
data_sources = data_source(sales = sales)
)
commons_app(agent)
} # }
