ChatRequest class

Available extensions
Annotations

Constructors

ChatRequest({required List<Message> messages, List<Tool> tools = const [], required ChatModel model, String? systemPrompt, String? user, ToolSchema? responseFormat})
const

Properties

adapted ChatRequest
no setter
hashCode int
The hash code for this object.
no setterinherited
messages List<Message>
final
model ChatModel
final
responseFormat ToolSchema?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemPrompt String?
final
to → _a

Available on _d, provided by the $ChatRequest extension

no setter
tools List<Tool>
final
ultraCompatible ChatRequest
no setter
user String?
final

Methods

copyWith({_18? messages, _18? appendMessages, _18? removeMessages, _1a? tools, _19 resetTools = _F, _1a? appendTools, _1a? removeTools, _e? model, _7? systemPrompt, _19 deleteSystemPrompt = _F, _7? user, _19 deleteUser = _F, _t? responseFormat, _19 deleteResponseFormat = _F}) → _d

Available on _d, provided by the $ChatRequest extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → _5

Available on _d, provided by the $ChatRequest extension

toString() String
A string representation of this object.
inherited

Operators

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