gemini {tidyllm} | R Documentation |
Google Gemini Provider Function
Description
The gemini()
function acts as a provider interface for interacting with the Google Gemini API
through tidyllm
's main verbs such as chat()
and embed()
.
It dynamically routes requests to Gemini-specific functions
like gemini_chat()
and gemini_embedding()
based on the context of the call.
Usage
gemini(..., .called_from = NULL)
Arguments
... |
Parameters to be passed to the appropriate Gemini-specific function, such as model configuration, input text, or API-specific options. |
.called_from |
An internal argument specifying which action (e.g.,
|
Details
Some functions, such as gemini_upload_file()
and gemini_delete_file()
,
are specific to Gemini and do not have general verb counterparts.
Value
The result of the requested action, depending on the specific function invoked
(e.g., an updated LLMMessage
object for chat()
).