Skip to contents

Core functions

btw()
Plain-text descriptions of R objects
btw_this()
Describe something for use by an LLM
btw_register_tools()
Tools: Register tools from btw

Describe R stuff

btw_this()
Describe something for use by an LLM
btw_this(<character>)
Describe objects
btw_this(<environment>)
Describe the contents of an environment
btw_this(<data.frame>) btw_this(<tbl>)
Describe a data frame in plain text

Tools

Register all of these tools with an ellmer chat using btw_register_tools(chat). These tools generally all have counterparts available via btw() and btw_this() for interactive use. The long and awkward function names are for LLMs and to avoid name clashes with other tools.