Class: OpenAI::Models::BetaResponseItem::Beta::BetaResponseItem::LocalShellCall::Action

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_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



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

def initialize: (

Instance Attribute Details

#command::Array[String]

Returns the value of attribute command.

Returns:

  • (::Array[String])


701
702
703
# File 'sig/openai/models/beta/beta_response_item.rbs', line 701

def command
  @command
end

#env::Hash[Symbol, String]

Returns the value of attribute env.

Returns:

  • (::Hash[Symbol, String])


703
704
705
# File 'sig/openai/models/beta/beta_response_item.rbs', line 703

def env
  @env
end

#timeout_msInteger?

Returns the value of attribute timeout_ms.

Returns:

  • (Integer, nil)


707
708
709
# File 'sig/openai/models/beta/beta_response_item.rbs', line 707

def timeout_ms
  @timeout_ms
end

#type:exec

Returns the value of attribute type.

Returns:

  • (:exec)


705
706
707
# File 'sig/openai/models/beta/beta_response_item.rbs', line 705

def type
  @type
end

#userString?

Returns the value of attribute user.

Returns:

  • (String, nil)


709
710
711
# File 'sig/openai/models/beta/beta_response_item.rbs', line 709

def user
  @user
end

#working_directoryString?

Returns the value of attribute working_directory.

Returns:

  • (String, nil)


711
712
713
# File 'sig/openai/models/beta/beta_response_item.rbs', line 711

def working_directory
  @working_directory
end

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {