DartBridgeLLM class
LLM component bridge for C++ interop.
Provides access to the C++ LLM component. Handles model loading, generation, and lifecycle.
Matches Swift's CppBridge.LLM actor pattern.
Properties
- currentModelId → String?
-
Get the currently loaded model ID.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoaded → bool
-
Check if a model is loaded.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsStreaming → bool
-
Check if streaming is supported.
no setter
Methods
-
cancel(
) → void - Cancel ongoing generation.
-
cancelProto(
) → SDKEvent? - Cancel lifecycle-owned LLM generation.
-
destroy(
) → void - Destroy the component and release resources.
-
generateProto(
LLMGenerateRequest request) → Future< LLMGenerationResult> - Generate text using the lifecycle-owned generated-proto LLM ABI.
-
generateStreamProto(
LLMGenerateRequest request) → Stream< LLMStreamEvent> - Stream text generation using the lifecycle-owned generated-proto LLM ABI, with TRUE incremental token delivery (FLUTTER-IOS-006 resolved).
-
getHandle(
) → RacHandle - Get or create the LLM component handle.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unload(
) → void - Unload the current model.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
Shared instance
final