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

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_response_item.rbs

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

#initializeObject



493
# File 'sig/openai/models/beta/beta_response_item.rbs', line 493

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseItem::Program::Agent? (readonly)

Returns the value of attribute agent.

Returns:

  • (OpenAI::Beta::BetaResponseItem::Program::Agent, nil)


487
488
489
# File 'sig/openai/models/beta/beta_response_item.rbs', line 487

def agent
  @agent
end

#call_idString

Returns the value of attribute call_id.

Returns:

  • (String)


479
480
481
# File 'sig/openai/models/beta/beta_response_item.rbs', line 479

def call_id
  @call_id
end

#codeString

Returns the value of attribute code.

Returns:

  • (String)


481
482
483
# File 'sig/openai/models/beta/beta_response_item.rbs', line 481

def code
  @code
end

#fingerprintString

Returns the value of attribute fingerprint.

Returns:

  • (String)


483
484
485
# File 'sig/openai/models/beta/beta_response_item.rbs', line 483

def fingerprint
  @fingerprint
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


477
478
479
# File 'sig/openai/models/beta/beta_response_item.rbs', line 477

def id
  @id
end

#type:program

Returns the value of attribute type.

Returns:

  • (:program)


485
486
487
# File 'sig/openai/models/beta/beta_response_item.rbs', line 485

def type
  @type
end

Instance Method Details

#agent=Object (readonly)



489
# File 'sig/openai/models/beta/beta_response_item.rbs', line 489

def agent=: (

#to_hash{

Returns:

  • ({)


502
# File 'sig/openai/models/beta/beta_response_item.rbs', line 502

def to_hash: -> {