Class: OpenAI::Models::Responses::ResponseItem::Program

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_item.rb,
sig/openai/models/responses/response_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



115
# File 'sig/openai/models/responses/response_item.rbs', line 115

def initialize: (

Instance Attribute Details

#call_idString

The stable call ID of the program item.

Parameters:

  • value (String)

Returns:

  • (String)


163
# File 'lib/openai/models/responses/response_item.rb', line 163

required :call_id, String

#codeString

The JavaScript source executed by programmatic tool calling.

Parameters:

  • value (String)

Returns:

  • (String)


169
# File 'lib/openai/models/responses/response_item.rb', line 169

required :code, String

#fingerprintString

Opaque program replay fingerprint that must be round-tripped.

Parameters:

  • value (String)

Returns:

  • (String)


175
# File 'lib/openai/models/responses/response_item.rb', line 175

required :fingerprint, String

#idString

The unique ID of the program item.

Parameters:

  • value (String)

Returns:

  • (String)


157
# File 'lib/openai/models/responses/response_item.rb', line 157

required :id, String

#typeSymbol, :program

The type of the item. Always program.

Parameters:

  • value (:program)

Returns:

  • (Symbol, :program)


181
# File 'lib/openai/models/responses/response_item.rb', line 181

required :type, const: :program

Instance Method Details

#to_hash{

Returns:

  • ({)


123
# File 'sig/openai/models/responses/response_item.rbs', line 123

def to_hash: -> {