Class: OpenAI::Models::Responses::ResponseReasoningItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_reasoning_item.rb

Defined Under Namespace

Modules: Status Classes: Content, Summary

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(text:, type: :reasoning_text) ⇒ Object

Reasoning text from the model.

Parameters:

  • text (String)

    The reasoning text from the model.

  • type (Symbol, :reasoning_text) (defaults to: :reasoning_text)

    The type of the reasoning text. Always ‘reasoning_text`.



# File 'lib/openai/models/responses/response_reasoning_item.rb', line 81

Instance Attribute Details

#contentArray<OpenAI::Models::Responses::ResponseReasoningItem::Content>?

Reasoning text content.



30
31
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 30

optional :content,
-> { OpenAI::Internal::Type::ArrayOf[OpenAI::Responses::ResponseReasoningItem::Content] }

#encrypted_contentString?

The encrypted content of the reasoning item - populated when a response is generated with ‘reasoning.encrypted_content` in the `include` parameter.

Returns:

  • (String, nil)


38
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 38

optional :encrypted_content, String, nil?: true

#idString

The unique identifier of the reasoning content.

Returns:

  • (String)


11
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 11

required :id, String

#statusSymbol, ...

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



45
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 45

optional :status, enum: -> { OpenAI::Responses::ResponseReasoningItem::Status }

#summaryArray<OpenAI::Models::Responses::ResponseReasoningItem::Summary>

Reasoning summary content.



17
18
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 17

required :summary,
-> { OpenAI::Internal::Type::ArrayOf[OpenAI::Responses::ResponseReasoningItem::Summary] }

#typeSymbol, :reasoning

The type of the object. Always ‘reasoning`.

Returns:

  • (Symbol, :reasoning)


24
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 24

required :type, const: :reasoning