ResolvedChatRequest class final

A ChatRequest with every value set, as the engine resolved it in InferenceModel.resolveChatRequest. Every field but runtimeInjectsToolDeclarations is required, so a value an engine forgets to carry over is a compile error, not a silent default.

Constructors

ResolvedChatRequest({required ModelType modelType, required bool supportImage, required bool supportAudio, required bool supportsFunctionCalls, required List<Tool> tools, required int maxFunctionBufferLength, bool runtimeInjectsToolDeclarations = false, required double? temperature, required int? randomSeed, required int? topK, required double? topP, required int tokenBuffer, required String? loraPath, required bool enableThinking, required ToolChoice toolChoice, required String? systemInstruction, required int? maxOutputTokens, required JsonSchemaResponseFormat? responseFormat})
const

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?
ChatRequest.responseFormat, carried over unchanged: core opens the chat's sessions with its own, and InferenceModel.openChat throws StateError naming the engine when this differs from it.
final
runtimeInjectsToolDeclarations → bool
True when the runtime renders the tool declarations itself, so the chat must not add its own tools prompt. False leaves it to the model's function-call format (true for Gemma 4 and FunctionGemma on .litertlm).
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>
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