LocalAiBackendCapabilities class
What the running host can do. Every field is a runtime property of this
device + OS + build: the same binary reports supportsVision: false on
iOS 26 and can report true on iOS 27 when built with its SDK.
Constructors
- LocalAiBackendCapabilities({required LocalAiBackendKind backend, required String platform, required String apiName, bool supportsToolCalling = false, bool supportsStructuredOutput = false, bool supportsVision = false, bool supportsTokenCount = false, bool supportsModelDownload = false, bool supportsPlayStoreRedirect = false, bool isConfigured = false})
-
const
Properties
- apiName → String
-
final
- backend → LocalAiBackendKind
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConfigured → bool
-
The backend is present AND this build can drive it.
final
- platform → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsModelDownload → bool
-
final
- supportsPlayStoreRedirect → bool
-
final
- supportsStructuredOutput → bool
-
Generation constrained to a JSON schema.
final
- supportsTokenCount → bool
-
A real tokenizer is reachable, so token counts are exact rather than a
character estimate.
final
- supportsToolCalling → bool
-
Native function calling. False where tool use has to be woven into the
prompt instead.
final
- supportsVision → bool
-
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