ChatModelCapabilities class

Available extensions
Annotations
  • @artifact

Constructors

ChatModelCapabilities.new({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
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({_w? tools, _w? ultraCompatibleMode, _18? systemMode, _5? contextWindow, _5? deltaContextWindow, _5? maxTokenOutput, _5? deltaMaxTokenOutput, _19? inputModalities, _19? appendInputModalities, _19? removeInputModalities, _19? outputModalities, _19? appendOutputModalities, _19? removeOutputModalities, _w? reasoning, _w? structuredOutput, _w? streaming, _w? seesToolMessages}) → _m

Available on _m, provided by the $ChatModelCapabilities extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool pretty = _F}) → _3

Available on _m, provided by the $ChatModelCapabilities extension

toMap() → _1

Available on _m, provided by the $ChatModelCapabilities extension

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

Operators

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