GenerateMessageRequest class final

Request to generate a message response from the model.

Constructors

GenerateMessageRequest({required String model, required MessagePrompt? prompt, double? temperature, int? candidateCount, double? topP, int? topK})
GenerateMessageRequest.fromJson(Object? j)
factory

Properties

candidateCount → int?
Optional. The number of generated response messages to return.
final
hashCode → int
The hash code for this object.
no setterinherited
model → String
Required. The name of the model to use.
final
prompt → MessagePrompt?
Required. The structured textual input given to the model as a prompt.
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
temperature → double?
Optional. Controls the randomness of the output.
final
topK → int?
Optional. The maximum number of tokens to consider when sampling.
final
topP → double?
Optional. The maximum cumulative probability of tokens to consider when sampling.
final

Methods

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

Operators

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

Constants

fullyQualifiedName → const String