ReasoningItem

constructor(content: List<ResponseContentPart> = emptyList(), id: String? = null, status: ResponseStatus? = null)


constructor(text: String, id: String? = null, status: ResponseStatus? = null)

Creates a reasoning item from plain chain-of-thought text.

Parameters

text

The reasoning text, wrapped in a single ReasoningTextPart

id

Identifier of an item echoed back from a previous response

status

Generation state of an item echoed back from a previous response