class

OpenAI::ReasoningItem

Inherits JSON::Serializable < Reference < Object

A description of the chain of thought used by a reasoning model while generating a response. Be sure to include these items in your input to the Responses API for subsequent turns of a conversation if you are manually managing context.

Constructors

new(type_value : ReasoningItemType = ReasoningItemType::Reasoning, id : String = "", encrypted_content : ReasoningItemEncryptedContent | Nil = nil, summary : Array(Summary) = [] of Summary, content : Array(ReasoningTextContent) | Nil = nil, status : ReasoningItemStatus | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

Reasoning text content.

Source
content=(content : Array(ReasoningTextContent) | Nil)

Reasoning text content.

Source
encrypted_content
Source
encrypted_content=(encrypted_content : ReasoningItemEncryptedContent | Nil)
Source
id

The unique identifier of the reasoning content.

Source
id=(id : String)

The unique identifier of the reasoning content.

Source
status

The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Source
status=(status : ReasoningItemStatus | Nil)

The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Source
summary

Reasoning summary content.

Source
summary=(summary : Array(Summary))

Reasoning summary content.

Source
type_value

The type of the object. Always reasoning.

Source
type_value=(type_value : ReasoningItemType)

The type of the object. Always reasoning.

Source