VlmWrapper class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyChatTemplate(List<VlmChatMessage> messages, {String? tools, bool enableThinking = false}) Future<ChatTemplateOutput>
Apply chat template to format VLM messages
destroy() Future<void>
Destroy the model and free resources
generateStream(String prompt, GenerationConfig config) Stream<LlmStreamResult>
Generate text with streaming support (handles images and audio) Returns a stream of LlmStreamResult events
injectMediaPathsToConfig(List<VlmChatMessage> messages, GenerationConfig baseConfig) GenerationConfig
Inject media paths (images/audio) into generation config
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() Future<void>
Reset the conversation history
stopStream() Future<void>
Stop the current stream generation
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create(VlmCreateInput input) Future<VlmWrapper>
Create and load a VLM model