GeminiModel class

GeminiModel is the AI model and declares AI options

Annotations
  • @unfreezed

Constructors

GeminiModel({String? name, String? version, String? displayName, String? description, int? inputTokenLimit, int? outputTokenLimit, List<String>? supportedGenerationMethods, double? temperature, double? topP, int? topK})
factory
GeminiModel.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $GeminiModelCopyWith<GeminiModel>
no setterinherited
description String?
getter/setter pairinherited
displayName String?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
inputTokenLimit int?
getter/setter pairinherited
name String?
getter/setter pairinherited
outputTokenLimit int?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedGenerationMethods List<String>?
getter/setter pairinherited
temperature double?
getter/setter pairinherited
topK int?
getter/setter pairinherited
topP double?
getter/setter pairinherited
version String?
getter/setter pairinherited

Methods

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

Operators

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

Static Methods

jsonToList(List list) List<GeminiModel>