| hal_register_package_tools | R Documentation |
Discovers exported functions from a package and registers them as LLM-callable tools.
hal_register_package_tools(pkg, fns = NULL, exclude = NULL, prefix = NULL)
pkg |
Character; package name. |
fns |
Character vector of function names. If NULL, registers all exported functions. |
exclude |
Character vector of function names to skip. |
prefix |
Optional prefix for tool names (e.g., |
Invisibly returns a list of registered tool definitions.
## Not run:
# expose a few dplyr verbs to the model
hal_register_package_tools("dplyr",
fns = c("filter", "select", "arrange"), prefix = "dplyr_"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.