CreateMessageRequest class

Create message request for sampling

Constructors

CreateMessageRequest({required List<Message> messages, ModelPreferences? modelPreferences, String? systemPrompt, String? includeContext, int? maxTokens, double? temperature, List<String>? stopSequences, Map<String, dynamic>? metadata})

Properties

hashCode int
The hash code for this object.
no setterinherited
includeContext String?
final
maxTokens int?
final
messages List<Message>
final
metadata Map<String, dynamic>?
final
modelPreferences ModelPreferences?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopSequences List<String>?
final
systemPrompt String?
final
temperature double?
final

Methods

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

Operators

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