Class: OpenAI::Models::BetaResponseOutputItem::Beta::BetaResponseOutputItem::LocalShellCall

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

Defined Under Namespace

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



671
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 671

def initialize: (

Instance Attribute Details

#actionOpenAI::Beta::BetaResponseOutputItem::LocalShellCall::Action

Returns the value of attribute action.

Returns:

  • (OpenAI::Beta::BetaResponseOutputItem::LocalShellCall::Action)


661
662
663
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 661

def action
  @action
end

#agentOpenAI::Beta::BetaResponseOutputItem::LocalShellCall::Agent?

Returns the value of attribute agent.

Returns:

  • (OpenAI::Beta::BetaResponseOutputItem::LocalShellCall::Agent, nil)


669
670
671
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 669

def agent
  @agent
end

#call_idString

Returns the value of attribute call_id.

Returns:

  • (String)


663
664
665
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 663

def call_id
  @call_id
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


659
660
661
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 659

def id
  @id
end

#statusOpenAI::Models::Beta::BetaResponseOutputItem::LocalShellCall::status

Returns the value of attribute status.

Returns:

  • (OpenAI::Models::Beta::BetaResponseOutputItem::LocalShellCall::status)


665
666
667
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 665

def status
  @status
end

#type:local_shell_call

Returns the value of attribute type.

Returns:

  • (:local_shell_call)


667
668
669
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 667

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


680
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 680

def to_hash: -> {