Class: OpenAI::Models::Responses::ResponseReasoningSummaryPartDoneEvent::Part
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseReasoningSummaryPartDoneEvent::Part
- Defined in:
- lib/openai/models/responses/response_reasoning_summary_part_done_event.rb,
sig/openai/models/responses/response_reasoning_summary_part_done_event.rbs
Overview
Instance Attribute Summary collapse
-
#text ⇒ String
The text of the summary part.
-
#type ⇒ Symbol, :summary_text
The type of the summary part.
Instance Method Summary collapse
-
#initialize ⇒ Part
constructor
A new instance of Part.
- #to_hash ⇒ { text: String, type: :summary_text }
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 ⇒ Part
Returns a new instance of Part.
61 |
# File 'sig/openai/models/responses/response_reasoning_summary_part_done_event.rbs', line 61
def initialize: (text: String, ?type: :summary_text) -> void
|
Instance Attribute Details
#text ⇒ String
The text of the summary part.
77 |
# File 'lib/openai/models/responses/response_reasoning_summary_part_done_event.rb', line 77 required :text, String |
#type ⇒ Symbol, :summary_text
The type of the summary part. Always summary_text.
83 |
# File 'lib/openai/models/responses/response_reasoning_summary_part_done_event.rb', line 83 required :type, const: :summary_text |
Instance Method Details
#to_hash ⇒ { text: String, type: :summary_text }
63 |
# File 'sig/openai/models/responses/response_reasoning_summary_part_done_event.rbs', line 63
def to_hash: -> { text: String, type: :summary_text }
|