| tool_calls | R Documentation |
When a model decides to call tools, finish_reason(x) is "tool" and this
helper returns what it asked for. call_llm_tools() uses it internally; it
is exported so custom loops can be built on it.
tool_calls(x)
x |
An llmr_response object. |
A list with one element per requested call:
list(id =, name =, arguments =) where arguments is a named list.
list() when the response contains no tool calls.
call_llm_tools(), llm_tool()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.