Constructs a tool object that can be registered with an LLM chat via
cb_register_tool.
Arguments
- 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
type_*()functions (e.g.ellmer::type_string()).- x
A
cb_toolobject.- ...
Ignored.
