class RubyLLM::RequestShape::Turn

A Turn describes one entry of a request’s conversation: a message, or one item where the provider sends a model’s reasoning and tool calls as items of their own.

turn = error.request_shape.turns.last
turn.index # => 4
turn.role  # => "user"
turn.to_s  # => "#4 user: text (31 chars)"