Reference

Main functions

The main agent constructor, plus the building blocks for a commons agent.

Commons A trustworthy agent that answers questions about its data.
data_source Create a data source from an engine, a pins board, or named frames.
semantic_layer Collect measures into a semantic layer.
measure Mark a function as a measure.
context_layer Create a context layer from text or Markdown files.

Supporting types

The objects the constructors return, and the values they carry.

DataSource Tables an agent can query, and the dictionary that describes them.
SemanticLayer The trusted calculations an agent can run.
ContextLayer Text that helps an agent interpret its data source.
Measure A trusted calculation the agent can run.
Injected
Tag How an answer was produced.
list_tables The table names an agent can query on source.

Shiny UI and server

Put a commons agent inside of an interactive chat app. Needs the shiny extra.

app Build a complete app around a commons agent.
server Wire a commons agent to the chat element id on the page.
theme Build the theme a commons chat page uses.
commons_chat_dependency The dependency serving the chat script, stylesheet and icons.
asset_base_url The URL the assets are served under on a page.