Class: OpenAI::Models::Responses::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto

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

Defined Under Namespace

Modules: MemoryLimit

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

#initialize(file_ids: nil, memory_limit: nil, type: :auto) ⇒ Object

Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.

Parameters:



# File 'lib/openai/models/responses/tool.rb', line 410

Instance Attribute Details

#file_idsArray<String>?

An optional list of uploaded files to make available to your code.

Returns:

  • (Array<String>, nil)


399
# File 'lib/openai/models/responses/tool.rb', line 399

optional :file_ids, OpenAI::Internal::Type::ArrayOf[String]

#memory_limitSymbol, ...



404
405
406
407
408
# File 'lib/openai/models/responses/tool.rb', line 404

optional :memory_limit,
enum: -> {
  OpenAI::Responses::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::MemoryLimit
},
nil?: true

#typeSymbol, :auto

Always ‘auto`.

Returns:

  • (Symbol, :auto)


393
# File 'lib/openai/models/responses/tool.rb', line 393

required :type, const: :auto