Class: OpenAI::Models::Responses::ResponseItem::LocalShellCall::Action

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_item.rb

Overview

See Also:

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from OpenAI::Internal::Type::BaseModel

Instance Attribute Details

#commandArray<String>

The command to run.

Returns:

  • (Array<String>)


169
# File 'lib/openai/models/responses/response_item.rb', line 169

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

#envHash{Symbol=>String}

Environment variables to set for the command.

Returns:

  • (Hash{Symbol=>String})


175
# File 'lib/openai/models/responses/response_item.rb', line 175

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

#timeout_msInteger?

Optional timeout in milliseconds for the command.

Returns:

  • (Integer, nil)


187
# File 'lib/openai/models/responses/response_item.rb', line 187

optional :timeout_ms, Integer, nil?: true

#typeSymbol, :exec

The type of the local shell action. Always ‘exec`.

Returns:

  • (Symbol, :exec)


181
# File 'lib/openai/models/responses/response_item.rb', line 181

required :type, const: :exec

#userString?

Optional user to run the command as.

Returns:

  • (String, nil)


193
# File 'lib/openai/models/responses/response_item.rb', line 193

optional :user, String, nil?: true

#working_directoryString?

Optional working directory to run the command in.

Returns:

  • (String, nil)


199
# File 'lib/openai/models/responses/response_item.rb', line 199

optional :working_directory, String, nil?: true