ThinkingConfig class

Thinking controls for models that can emit thought content.

Annotations
  • @JsonSerializable.new(includeIfNull: false, fieldRename: FieldRename.snake)

Constructors

ThinkingConfig({bool? includeThoughts, int? thinkingBudget, ThinkingLevel? thinkingLevel})
Creates a ThinkingConfig.
ThinkingConfig.fromJson(Map<String, dynamic> json)
Creates a ThinkingConfig from a JSON map.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
includeThoughts → bool?
Whether thought summaries are included in model responses.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thinkingBudget → int?
Maximum token budget reserved for internal reasoning.
final
thinkingLevel → ThinkingLevel?
Discrete thinking effort level (from ThinkingLevel.MINIMAL to ThinkingLevel.XHIGH).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this ThinkingConfig to a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

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