Class: OpenAI::Models::Responses::ResponseReasoningItem::Summary
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseReasoningItem::Summary
- Defined in:
- lib/openai/models/responses/response_reasoning_item.rb,
sig/openai/models/responses/response_reasoning_item.rbs
Instance Attribute Summary collapse
-
#text ⇒ String
A summary of the reasoning output from the model so far.
-
#type ⇒ :summary_text
The type of the object.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, summary:, content: nil, encrypted_content: nil, status: nil, type: :reasoning) ⇒ Summary
constructor
A new instance of Summary.
- #to_hash ⇒ { text: String, ?type: :summary_text }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(id:, summary:, content: nil, encrypted_content: nil, status: nil, type: :reasoning) ⇒ Summary
Returns a new instance of Summary.
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 88 class Summary < OpenAI::Internal::Type::BaseModel # @!attribute text # A summary of the reasoning output from the model so far. # # @return [String] required :text, String # @!attribute type # The type of the object. Always `summary_text`. # # @return [Symbol, :summary_text] required :type, const: :summary_text # @!method initialize(text:, type: :summary_text) # A summary text from the model. # # @param text [String] # A summary of the reasoning output from the model so far. # # @param type [Symbol, :summary_text] # The type of the object. Always `summary_text`. end |
Instance Attribute Details
#text ⇒ String
A summary of the reasoning output from the model so far.
93 |
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 93 required :text, String |
#type ⇒ :summary_text
The type of the object. Always summary_text.
99 |
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 99 required :type, const: :summary_text |
Instance Method Details
#to_hash ⇒ { text: String, ?type: :summary_text }
105 |
# File 'sig/openai/models/responses/response_reasoning_item.rbs', line 105
def to_hash: -> { text: String, ?type: :summary_text }
|