VisionPrompt class final

A tokenized visual prompt with image rows placed in message order.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hiddenSize → int
final
ids → List<int>
final
images → List<VisionTokenSpan>
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
prefill(Lfm3Model model, List<Float32List> projectedImages, {List<Object>? imageKeys}) → Future<int>
Feeds the visual prompt and returns how many tokens were reused. Each entry in projectedImages must be the encoder/projector output for the corresponding image part, flattened as span.count, hiddenSize. All inputs are validated and copied before model state changes.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited