LocalAiGenerationOverrides class

Sampling for a single call, overriding what the session was created with.

A session fixes its sampling at creation, which is what an engine-style caller wants. Both Apple's respond(options:) and ML Kit's request builder also take options per request, though, so a prompt-oriented caller can vary temperature or length for one turn without disturbing the conversation. Every field is null-means-inherit.

Constructors

LocalAiGenerationOverrides({double? temperature, double? topP, int? topK, int? maxOutputTokens})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
True when nothing is actually overridden, so callers can skip sending an object that would change nothing.
no setter
maxOutputTokens int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
temperature double?
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