Reasoning Item
@Serializable
The chain-of-thought a thinking model produced before its answer.
Comes back ahead of the MessageItem in ModelResponse.output, and is accepted on input so an earlier turn's reasoning can be replayed.
Constructors
Link copied to clipboard
constructor(content: List<ResponseContentPart> = emptyList(), id: String? = null, status: ResponseStatus? = null)
Creates a reasoning item from plain chain-of-thought text.
Properties
Link copied to clipboard
Parts carrying the reasoning, in practice ReasoningTextParts.
Link copied to clipboard
Generation state of the item; null on an item the caller built.
Link copied to clipboard
The reasoning text of every TextContentPart in content, concatenated in order.