GoogleAiModel constructor

GoogleAiModel(name)

Initializes a new instance of GoogleAiModel class.

GoogleAiModel(name: string)
ParameterTypeDescription
namestringThe name of the model. For example, gemini-2.5-flash.

GoogleAiModel(name, apiKey)

Initializes a new instance of GoogleAiModel class.

GoogleAiModel(name: string, apiKey: string)
ParameterTypeDescription
namestringThe name of the model. For example, gemini-2.5-flash.
apiKeystringThe API key to use the Gemini API. Please refer to https://ai.google.dev/gemini-api/docs/api-key for details.

See Also