Model class final

Information about a Generative Language Model.

Inheritance

Constructors

Model({required String name, required String baseModelId, required String version, String displayName = '', String description = '', int inputTokenLimit = 0, int outputTokenLimit = 0, List<String> supportedGenerationMethods = const [], double? temperature, double? maxTemperature, double? topP, int? topK, bool thinking = false})
Model.fromJson(Map<String, dynamic> json)
factory

Properties

baseModelId String
Required. The name of the base model, pass this to the generation request.
final
description String
A short description of the model.
final
displayName String
The human-readable name of the model. E.g. "Gemini 1.5 Flash".
final
hashCode int
The hash code for this object.
no setterinherited
inputTokenLimit int
Maximum number of input tokens allowed for this model.
final
maxTemperature double?
The maximum temperature this model can use.
final
name String
Required. The resource name of the Model. Refer to Model variants for all allowed values.
final
outputTokenLimit int
Maximum number of output tokens available for this model.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedGenerationMethods List<String>
The model's supported generation methods.
final
temperature double?
Controls the randomness of the output.
final
thinking bool
Whether the model supports thinking.
final
topK int?
For Top-k sampling.
final
topP double?
For Nucleus sampling.
final
version String
Required. The version number of the model.
final

Methods

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

Operators

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

Constants

fullyQualifiedName → const String