PromptSnapshot class
An immutable record of one rendered prompt and the sampling configuration it was generated with.
text is the fully rendered, wire-format prompt — for the Gemma format it
already contains the system instructions, tool declarations, and message
history, so it answers "what is the model provided with" on its own. The
sampling fields are the values actually passed to generate, after any
per-request ChatOptions overrides were applied.
- Annotations
Constructors
Properties
- capturedAt → DateTime
-
When the snapshot was captured.
final
- contextSize → int
-
The model's context window in tokens, used to gauge how full the context
is from an estimated count of text.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageCount → int
-
Number of image attachments sent with this prompt.
final
- maxTokens → int
-
Resolved sampling values actually sent to
generate.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seed → int?
-
final
-
stopSequences
→ List<
String> -
Stop sequences passed alongside the prompt.
final
- temperature → double
-
final
- text → String
-
The rendered wire-format prompt handed to the model.
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