Before building an agent that uses a Gemini model, you’ll need to create an
Google AI Studio account and get an API key.
Configuration
The name of the Gemini model you want your agent to use.
By default, your agent will use
gemini-2.0-flash
.The name of the secret which contains your Gemini API key. NOTE: This is the name of the secret,
not your actual secret key!
Creating the Model
Callinggemini()
with no arguments will use all default values:
string
argument will set the model name
: