Class: OpenAI::Models::Beta::BetaResponseInputItem::ItemReference

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

Defined Under Namespace

Modules: Type 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_name:) ⇒ Object

The agent that produced this item.

Parameters:

  • agent_name (String)

    The canonical name of the agent that produced this item.



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

Instance Attribute Details

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

The agent that produced this item.



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

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

#idString

The ID of the item to reference.

Returns:

  • (String)


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

required :id, String

#typeSymbol, ...

The type of item to reference. Always item_reference.



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

optional :type, enum: -> { OpenAI::Beta::BetaResponseInputItem::ItemReference::Type }, nil?: true