Class: OpenAI::Models::Responses::Response::InputTransformation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response.rb,
sig/openai/models/responses/response.rbs

Defined Under Namespace

Modules: Reason

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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.

Parameters:

  • id —

    The original reasoning item ID.

  • id: (String)
  • reason: (OpenAI::Models::Responses::Response::InputTransformation::reason)
  • action: (:removed) (defaults to: :removed)
  • type: (:reasoning) (defaults to: :reasoning)


# File 'lib/openai/models/responses/response.rb', line 859

Instance Attribute Details

#action ⇒ Symbol, :removed

Parameters:

  • value (:removed)

Returns:

  • (Symbol, :removed)


847
# File 'lib/openai/models/responses/response.rb', line 847

required :action, const: :removed

#id ⇒ String

The original reasoning item ID.

Returns:

  • (String)


842
# File 'lib/openai/models/responses/response.rb', line 842

required :id, String

#reason ⇒ Symbol, OpenAI::Models::Responses::Response::InputTransformation::Reason

Parameters:

  • value (OpenAI::Models::Responses::Response::InputTransformation::reason)

Returns:



852
# File 'lib/openai/models/responses/response.rb', line 852

required :reason, enum: -> { OpenAI::Responses::Response::InputTransformation::Reason }

#type ⇒ Symbol, :reasoning

Parameters:

  • value (:reasoning)

Returns:

  • (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 }

Returns:

  • ({ 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
}