ScriptedTurn class sealed

What the scripted model answers to one generation.

Constructors

ScriptedTurn.text(String text)
A plain answer.
const
factory
ScriptedTurn.toolCall(String name, [Map<String, Object?> arguments])
A call of name with arguments, in the Qwen3.5 XML envelope (the default template's). A model of another family (LlamadartFamilyProfile) writes its own syntax: script its calls with ScriptedTurn.text, for example <|tool_call>call:add{a:2,b:3}<tool_call|> for Gemma 4 (scriptedAssistant refuses a ScriptedTurn.toolCall its profile does not read).
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
output → String
The raw output of the generation.
no setter
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
toString() → String
A string representation of this object.
inherited

Operators

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