| cb_tool | R Documentation |
Constructs a tool object that can be registered with an LLM chat via
cb_register_tool.
cb_tool(fun, name, description, arguments = list())
## S3 method for class 'cb_tool'
print(x, ...)
fun |
Function to invoke when the tool is called. |
name |
Character string identifying the tool. |
description |
Character string describing what the tool does. The more detail provided, the better the LLM can decide when to use it. |
arguments |
Named list of argument type definitions created by
ellmer |
x |
A |
... |
Ignored. |
An object of class cb_tool.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.