ChatRequest class final
InferenceModel.openChat's arguments as the caller passed them (nulls unset), for InferenceModel.resolveChatRequest.
Constructors
-
ChatRequest({double? temperature, int? randomSeed, int? topK, double? topP, int tokenBuffer = 256, String? loraPath, bool? supportImage, bool? supportAudio, List<
Tool> tools = const [], bool? supportsFunctionCalls, bool enableThinking = false, ModelType? modelType, ToolChoice toolChoice = ToolChoice.auto, int? maxFunctionBufferLength, String? systemInstruction, int? maxOutputTokens, JsonSchemaResponseFormat? responseFormat})
Properties
- enableThinking → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- loraPath → String?
-
final
- maxFunctionBufferLength → int?
-
final
- maxOutputTokens → int?
-
final
- modelType → ModelType?
-
final
- randomSeed → int?
-
final
- responseFormat → JsonSchemaResponseFormat?
-
The caller's format; core checks it on every session it opens.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportAudio → bool?
-
final
- supportImage → bool?
-
final
- supportsFunctionCalls → bool?
-
final
- systemInstruction → String?
-
final
- temperature → double?
-
final
- tokenBuffer → int
-
final
- toolChoice → ToolChoice
-
final
-
tools
→ List<
Tool> -
Unmodifiable.
final
- topK → int?
-
final
- topP → double?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited