ChatModelCapabilities class

Available extensions
Annotations

Constructors

ChatModelCapabilities({required bool tools, required bool ultraCompatibleMode, required ChatModelSystemMode systemMode, required int contextWindow, required int maxTokenOutput, required List<Modality> inputModalities, required List<Modality> outputModalities, required bool reasoning, required bool structuredOutput, required bool streaming, required bool seesToolMessages})
const

Properties

contextWindow → int
The maximum number of tokens the model can process in a single call
final
hashCode → int
The hash code for this object.
no setterinherited
inputModalities → List<Modality>
The input modalities supported by the model
final
maxTokenOutput → int
The maximum number of tokens the model can output in a single call
final
outputModalities → List<Modality>
The output modalities supported by the model
final
reasoning → bool
Does this model support reasoning?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seesToolMessages → bool
Can this model see tool response messages? If not they will be replaced with system messages
final
streaming → bool
Does this model support streaming?
final
structuredOutput → bool
Does this model support structured output? via JSON or other formats
final
systemMode → ChatModelSystemMode
The system mode of the model, see ChatModelSystemMode
final
to → _a

Available on _v, provided by the $ChatModelCapabilities extension

no setter
tools → bool
Does this model support tool calling?
final
ultraCompatibleMode → bool
First all tool response messages are converted to system response messages prefixed with (tool <tool_id> called): <tool_response> Then, all system messages are replaced into user messages prefixed with (system): <system_message>
final

Methods

copyWith({_19? tools, _19? ultraCompatibleMode, _22? systemMode, _9? contextWindow, _9? deltaContextWindow, _9? maxTokenOutput, _9? deltaMaxTokenOutput, _23? inputModalities, _23? appendInputModalities, _23? removeInputModalities, _23? outputModalities, _23? appendOutputModalities, _23? removeOutputModalities, _19? reasoning, _19? structuredOutput, _19? streaming, _19? seesToolMessages}) → _v

Available on _v, provided by the $ChatModelCapabilities extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → _5

Available on _v, provided by the $ChatModelCapabilities extension

toString() → String
A string representation of this object.
inherited

Operators

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