ThinkingContent class final
Model reasoning ("thinking") produced before or alongside the answer.
Ported from pi's ThinkingContent.
- Inheritance
-
- Object
- ContentBlock
- ThinkingContent
Constructors
- ThinkingContent({required String thinking, String? thinkingSignature, bool redacted = false})
-
const
-
ThinkingContent.fromJson(Map<
String, dynamic> json) -
Deserializes from a JSON map produced by toJson.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- redacted → bool
-
Whether the thinking content was redacted by safety filters. The opaque
encrypted payload is stored in thinkingSignature.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thinking → String
-
The reasoning text.
final
- thinkingSignature → String?
-
Provider-specific opaque signature (e.g. an OpenAI responses reasoning
item id, or the encrypted payload when redacted is true) needed to
replay this block for multi-turn continuity.
final
Methods
-
copyWith(
{String? thinking, String? thinkingSignature, bool? redacted}) → ThinkingContent -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes to a JSON map with a
typediscriminator (pi shape).override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited