TtsrSettings class final
TTSR settings (omp's TtsrSettings, reduced).
Constructors
- TtsrSettings({bool enabled = true, TtsrContextMode contextMode = TtsrContextMode.discard, TtsrRepeatMode repeatMode = TtsrRepeatMode.once, int repeatGap = 10, int maxInjectionsPerTurn = 3, Duration retryDelay = const Duration(milliseconds: 50)})
-
Creates settings; every field has omp's default.
const
Properties
- contextMode → TtsrContextMode
-
Partial-output handling before the retry.
final
- enabled → bool
-
Gates the whole manager: when false, registration is refused and
matching always returns empty (omp semantics).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxInjectionsPerTurn → int
-
Retry-storm guard: at most this many abort/inject/retry cycles per
prompt turn (the chain of retries stemming from one user prompt).
Further matches are ignored until a run completes cleanly.
final
- repeatGap → int
-
Completed turns before a rule may re-trigger under
TtsrRepeatMode.afterGap (omp default 10).
final
- repeatMode → TtsrRepeatMode
-
Repeat policy for already-injected rules.
final
- retryDelay → Duration
-
Delay between the mid-stream abort and the retry (omp schedules the
retry 50ms out so the aborted run settles first).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
contextModeFromLabel(
String label) → TtsrContextMode? -
Parses a mode label (
discard/keep,once/after-gap); returns null on unknown labels. -
repeatModeFromLabel(
String label) → TtsrRepeatMode? -
Parses a repeat-mode label (
once/after-gap).
Constants
- defaultSettings → const TtsrSettings
- omp's defaults: enabled, discard partials, fire once per session.