GemmaPrompt class

A rendered Gemma prompt plus the stop sequences generation should halt on.

Constructors

GemmaPrompt({required String text, required List<String> stopSequences, List<Uint8List> media = const <Uint8List>[]})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
media → List<Uint8List>
Encoded media bytes (image or audio) referenced by the mediaMarkers embedded in text, in the order the markers appear. Passed straight to the runtime so mtmd can interleave them; mtmd auto-detects each blob's kind from its magic bytes. Empty for a text-only prompt.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stopSequences → List<String>
Strings that terminate a generation turn. See GemmaChatTemplate.stopSequences.
final
text → String
The formatted prompt, ready to pass to LlamaCppFlutter.generate.
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