Class: OpenAI::Models::Responses::Response::InputTransformation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::Response::InputTransformation
- Defined in:
- lib/openai/models/responses/response.rb,
sig/openai/models/responses/response.rbs
Defined Under Namespace
Modules: Reason
Instance Attribute Summary collapse
- #action ⇒ Symbol, :removed
-
#id ⇒ String
The original reasoning item ID.
- #reason ⇒ Symbol, OpenAI::Models::Responses::Response::InputTransformation::Reason
- #type ⇒ Symbol, :reasoning
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, reason:, action: :removed, type: :reasoning) ⇒ InputTransformation
constructor
A new instance of InputTransformation.
- #to_hash ⇒ { id: String, ?action: :removed, reason: OpenAI::Models::Responses::Response::InputTransformation::reason, ?type: :reasoning }
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:, reason:, action: :removed, type: :reasoning) ⇒ InputTransformation
Returns a new instance of InputTransformation.
|
|
# File 'lib/openai/models/responses/response.rb', line 859
|
Instance Attribute Details
#action ⇒ Symbol, :removed
847 |
# File 'lib/openai/models/responses/response.rb', line 847 required :action, const: :removed |
#id ⇒ String
The original reasoning item ID.
842 |
# File 'lib/openai/models/responses/response.rb', line 842 required :id, String |
#reason ⇒ Symbol, OpenAI::Models::Responses::Response::InputTransformation::Reason
852 |
# File 'lib/openai/models/responses/response.rb', line 852 required :reason, enum: -> { OpenAI::Responses::Response::InputTransformation::Reason } |
#type ⇒ Symbol, :reasoning
857 |
# File 'lib/openai/models/responses/response.rb', line 857 required :type, const: :reasoning |
Instance Method Details
#to_hash ⇒ { id: String, ?action: :removed, reason: OpenAI::Models::Responses::Response::InputTransformation::reason, ?type: :reasoning }
853 854 855 856 857 858 |
# File 'sig/openai/models/responses/response.rbs', line 853
def to_hash: -> {
id: String,
?action: :removed,
reason: OpenAI::Models::Responses::Response::InputTransformation::reason,
?type: :reasoning
}
|