ModelCapabilities class
Capabilities advertised by a ModelProvider.
The host uses these to default behaviours — e.g. screenshot capture is enabled when vision is true.
Constructors
- ModelCapabilities({required bool vision, required bool preserveThinking, required int maxContext, required bool supportsToolUse})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxContext → int
-
Maximum context window in tokens.
final
- preserveThinking → bool
-
Whether thinking/reasoning blocks must be preserved across turns.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsToolUse → bool
-
Whether the model exposes a structured tool-use API.
final
- vision → bool
-
Whether the model accepts image inputs.
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