GenerativeModel class

A facilitator for a given multimodal model (eg; Gemini).

Constructors

GenerativeModel({required String modelName, required String apiKey, GenerationConfig? generationConfig, List<SafetySetting>? safetySettings})

Properties

apiKey String
Authentication key for interacting with the backend.
getter/setter pair
generationConfig GenerationConfig?
Configuration parameters to use for content generation.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
modelName String
Name of the model in the backend.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safetySettings List<SafetySetting>?
The safety bounds to use during alongside prompts during content generation.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert GenerativeModel to Map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited