Class: OpenAI::Models::Beta::BetaResponseInputItem::CompactionTrigger

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_input_item.rb

Defined Under Namespace

Classes: Agent

Instance Attribute Summary collapse

Instance Method Summary collapse

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(agent: nil, type: :compaction_trigger) ⇒ Object

Compacts the current context. Must be the final input item.

Parameters:



# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2592

Instance Attribute Details

#agentOpenAI::Models::Beta::BetaResponseInputItem::CompactionTrigger::Agent?

The agent that produced this item.



2590
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2590

optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::CompactionTrigger::Agent }, nil?: true

#typeSymbol, :compaction_trigger

The type of the item. Always compaction_trigger.

Returns:

  • (Symbol, :compaction_trigger)


2584
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2584

required :type, const: :compaction_trigger