Class: OpenAI::Models::Responses::ResponseInputItem::LocalShellCall::Action

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_input_item.rb,
sig/openai/models/responses/response_input_item.rbs

Overview

See Also:

  • OpenAI::Models::Responses::ResponseInputItem::LocalShellCall#action

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



489
# File 'sig/openai/models/responses/response_input_item.rbs', line 489

def initialize: (

Instance Attribute Details

#commandArray<String>

The command to run.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


681
# File 'lib/openai/models/responses/response_input_item.rb', line 681

required :command, OpenAI::Internal::Type::ArrayOf[String]

#envHash{Symbol=>String}

Environment variables to set for the command.

Parameters:

  • value (::Hash[Symbol, String])

Returns:

  • (Hash{Symbol=>String})


687
# File 'lib/openai/models/responses/response_input_item.rb', line 687

required :env, OpenAI::Internal::Type::HashOf[String]

#timeout_msInteger?

Optional timeout in milliseconds for the command.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


699
# File 'lib/openai/models/responses/response_input_item.rb', line 699

optional :timeout_ms, Integer, nil?: true

#typeSymbol, :exec

The type of the local shell action. Always exec.

Parameters:

  • value (:exec)

Returns:

  • (Symbol, :exec)


693
# File 'lib/openai/models/responses/response_input_item.rb', line 693

required :type, const: :exec

#userString?

Optional user to run the command as.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


705
# File 'lib/openai/models/responses/response_input_item.rb', line 705

optional :user, String, nil?: true

#working_directoryString?

Optional working directory to run the command in.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


711
# File 'lib/openai/models/responses/response_input_item.rb', line 711

optional :working_directory, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


498
# File 'sig/openai/models/responses/response_input_item.rbs', line 498

def to_hash: -> {