GenerateMessageRequest class
Request to generate a message.
Constructors
- GenerateMessageRequest({required String model, required MessagePrompt prompt, double? temperature, int? candidateCount, double? topP, int? topK})
- GenerateMessageRequest.fromJson(String source)
-
factory
-
GenerateMessageRequest.fromMap(Map<
String, dynamic> map) -
factory
Properties
- candidateCount → int?
-
Optional. The number of generated response messages to return.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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
- 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
-
copyWith(
{String? model, MessagePrompt? prompt, double? temperature, int? candidateCount, double? topP, int? topK}) → GenerateMessageRequest -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override