Class: OpenAI::Models::BetaResponseItem::Beta::BetaResponseItem::ProgramOutput

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

Defined Under Namespace

Modules: Status 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, #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



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

def initialize: (

Instance Attribute Details

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

Returns the value of attribute agent.

Returns:

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


543
544
545
# File 'sig/openai/models/beta/beta_response_item.rbs', line 543

def agent
  @agent
end

#call_idString

Returns the value of attribute call_id.

Returns:

  • (String)


535
536
537
# File 'sig/openai/models/beta/beta_response_item.rbs', line 535

def call_id
  @call_id
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


533
534
535
# File 'sig/openai/models/beta/beta_response_item.rbs', line 533

def id
  @id
end

#resultString

Returns the value of attribute result.

Returns:

  • (String)


537
538
539
# File 'sig/openai/models/beta/beta_response_item.rbs', line 537

def result
  @result
end

#statusOpenAI::Models::Beta::BetaResponseItem::ProgramOutput::status

Returns the value of attribute status.

Returns:

  • (OpenAI::Models::Beta::BetaResponseItem::ProgramOutput::status)


539
540
541
# File 'sig/openai/models/beta/beta_response_item.rbs', line 539

def status
  @status
end

#type:program_output

Returns the value of attribute type.

Returns:

  • (:program_output)


541
542
543
# File 'sig/openai/models/beta/beta_response_item.rbs', line 541

def type
  @type
end

Instance Method Details

#agent=Object (readonly)



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

def agent=: (

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {