ChatRequest class
- Available extensions
- Annotations
-
- @artifact
Constructors
-
ChatRequest.new({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
-
tools
→ List<
Tool> -
final
- ultraCompatible → ChatRequest
-
no setter
- user → String?
-
final
Methods
-
copyWith(
{_12? messages, _12? appendMessages, _12? removeMessages, _13? tools, _w resetTools = _F, _13? appendTools, _13? removeTools, _g? model, _3? systemPrompt, _w deleteSystemPrompt = _F, _3? user, _w deleteUser = _F, _l? responseFormat, _w deleteResponseFormat = _F}) → _h -
Available on _h, provided by the $ChatRequest extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{bool pretty = _F}) → _3 -
Available on _h, provided by the $ChatRequest extension
-
toMap(
) → _1 -
Available on _h, provided by the $ChatRequest extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited