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.
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.,
chat
,embed
) the function is invoked from. This argument is automatically managed by thetidyllm
verbs and should not be modified by the user.
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()
).
Details
Some functions, such as gemini_upload_file()
and gemini_delete_file()
,
are specific to Gemini and do not have general verb counterparts.