claude {tidyllm} | R Documentation |
Provider Function for Claude models on the Anthropic API
Description
The claude()
function acts as an interface for interacting with the Anthropic API
through main tidyllm
verbs such as chat()
, embed()
, and
send_batch()
. It dynamically routes requests to Claude-specific functions
like claude_chat()
and send_claude_batch()
based on the context of the call.
Usage
claude(..., .called_from = NULL)
Arguments
... |
Parameters to be passed to the appropriate OpenAI-specific function, such as model configuration, input text, or API-specific options. |
.called_from |
An internal argument that specifies which action (e.g.,
|
Value
The result of the requested action, depending on the specific function invoked
(e.g., an updated LLMMessage
object for chat()
, or a matrix for embed()
).