ai.ModelTurn
class in the ai package.
Reference version
Signature
class ai.ModelTurnSource:<builtin>/ai/turn.bamlbytes 605–1929
Fields
Instance methods
The media payloads the turn produced, in order. A media-shaped output type is built from these instead of from the terminal text.
function
terminal_text
(self) -> string | nullThe terminal Text block — the final candidate the runner parses.
The ToolUse blocks of the turn, in order.