Class: OpenAI::Models::Responses::ResponseInputItem::Program

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

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

#initializeObject



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

def initialize: (

Instance Attribute Details

#call_idString

The stable call ID of the program item.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :call_id, String

#codeString

The JavaScript source executed by programmatic tool calling.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :code, String

#fingerprintString

Opaque program replay fingerprint that must be round-tripped.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :fingerprint, String

#idString

The unique ID of this program item.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#typeSymbol, :program

The item type. Always program.

Parameters:

  • value (:program)

Returns:

  • (Symbol, :program)


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

required :type, const: :program

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {