ReasoningOptions class

Thinking-phase control for a generation request.

Constructors

ReasoningOptions({ReasoningMode mode = ReasoningMode.REASONING_MODE_ON, bool includeInOutput = false, String? pattern})
Configure whether the model thinks and whether thoughts reach the caller.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
includeInOutput bool
True streams thought tokens to the caller instead of stripping them.
final
mode ReasoningMode
Whether the thinking phase runs at all.
final
pattern String?
Opening thinking tag for models whose markers differ from the catalog default; the closing tag is derived from it. Null uses the model's own.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toProto() ReasoningOptions
Build the generated reasoning options.
toString() String
A string representation of this object.
inherited

Operators

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