AssistantTurn class
An assistant-role turn: the thinking trace (empty when absent) and the tool call the model chose.
- Inheritance
-
- Object
- ConversationTurn
- AssistantTurn
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
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
typediscriminator.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override