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.
gemini(..., .called_from = NULL)The result of the requested action, depending on the specific function invoked
(e.g., an updated LLMMessage object for chat()).
Parameters to be passed to the appropriate Gemini-specific function, such as model configuration, input text, or API-specific options.
An internal argument specifying which action (e.g.,
chat, embed) the function is invoked from.
This argument is automatically managed by the tidyllm verbs and should not be modified by the user.
Some functions, such as gemini_upload_file() and gemini_delete_file(),
are specific to Gemini and do not have general verb counterparts.