Class: OpenAI::Models::Responses::ResponseInputItem::CompactionTrigger

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

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 ⇒ CompactionTrigger

Returns a new instance of CompactionTrigger.

Parameters:

  • id —

    The unique ID of this compaction trigger.

  • type —

    The type of the item. Always compaction_trigger.

  • id: (String, nil)
  • type: (:compaction_trigger)


1971
# File 'sig/openai/models/responses/response_input_item.rbs', line 1971

def initialize: (?id: String?, ?type: :compaction_trigger) -> void

Instance Attribute Details

#id ⇒ String?

The unique ID of this compaction trigger.

Returns:

  • (String, nil)


2227
# File 'lib/openai/models/responses/response_input_item.rb', line 2227

optional :id, String, nil?: true

#type ⇒ :compaction_trigger

The type of the item. Always compaction_trigger.

Returns:

  • (:compaction_trigger)


2221
# File 'lib/openai/models/responses/response_input_item.rb', line 2221

required :type, const: :compaction_trigger

Instance Method Details

#to_hash ⇒ { ?type: :compaction_trigger, ?id: String? }

Returns:

  • ({ ?type: :compaction_trigger, ?id: String? })


1973
# File 'sig/openai/models/responses/response_input_item.rbs', line 1973

def to_hash: -> { ?type: :compaction_trigger, ?id: String? }