AssistantTurn class

An assistant-role turn: the thinking trace (empty when absent) and the tool call the model chose.

Inheritance

Constructors

AssistantTurn({required String thinking, required ({Map<String, dynamic> args, String tool}) action})
const
AssistantTurn.fromJson(Map<String, dynamic> json)
Decodes an assistant-role conversation turn.
factory

Properties

action → ({Map<String, dynamic> args, String tool})
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thinking → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Encodes this turn with a concrete type discriminator.
override
toString() → String
A string representation of this object.
inherited

Operators

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