Class: OpenAI::Models::Beta::BetaResponseItem::Program

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

Defined Under Namespace

Classes: Agent

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_with_error, #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(id:, call_id:, code:, fingerprint:, agent: nil, type: :program) ⇒ Object

Parameters:

  • id (String)

    The unique ID of the program item.

  • call_id (String)

    The stable call ID of the program item.

  • code (String)

    The JavaScript source executed by programmatic tool calling.

  • fingerprint (String)

    Opaque program replay fingerprint that must be round-tripped.

  • agent (OpenAI::Models::Beta::BetaResponseItem::Program::Agent) (defaults to: nil)

    The agent that produced this item.

  • type (Symbol, :program) (defaults to: :program)

    The type of the item. Always program.



# File 'lib/openai/models/beta/beta_response_item.rb', line 665

Instance Attribute Details

#agentOpenAI::Models::Beta::BetaResponseItem::Program::Agent?

The agent that produced this item.



663
# File 'lib/openai/models/beta/beta_response_item.rb', line 663

optional :agent, -> { OpenAI::Beta::BetaResponseItem::Program::Agent }

#call_idString

The stable call ID of the program item.

Returns:

  • (String)


639
# File 'lib/openai/models/beta/beta_response_item.rb', line 639

required :call_id, String

#codeString

The JavaScript source executed by programmatic tool calling.

Returns:

  • (String)


645
# File 'lib/openai/models/beta/beta_response_item.rb', line 645

required :code, String

#fingerprintString

Opaque program replay fingerprint that must be round-tripped.

Returns:

  • (String)


651
# File 'lib/openai/models/beta/beta_response_item.rb', line 651

required :fingerprint, String

#idString

The unique ID of the program item.

Returns:

  • (String)


633
# File 'lib/openai/models/beta/beta_response_item.rb', line 633

required :id, String

#typeSymbol, :program

The type of the item. Always program.

Returns:

  • (Symbol, :program)


657
# File 'lib/openai/models/beta/beta_response_item.rb', line 657

required :type, const: :program