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

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

Defined Under Namespace

Modules: MemoryLimit, NetworkPolicy

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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, network_policy: nil, type: :auto) ⇒ CodeInterpreterToolAuto

Returns a new instance of CodeInterpreterToolAuto.

Parameters:

  • file_ids (defaults to: nil) —

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

  • memory_limit (defaults to: nil) —

    The memory limit for the code interpreter container.

  • network_policy (defaults to: nil) —

    Network access policy for the container.

  • type (defaults to: :auto) —

    Always auto.

  • file_ids: (::Array[String]) (defaults to: nil)
  • memory_limit: (OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::memory_limit, nil) (defaults to: nil)
  • network_policy: (OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::network_policy) (defaults to: nil)
  • type: (:auto) (defaults to: :auto)


# File 'lib/openai/models/responses/response_tool_search_output_item_param.rb', line 647

Instance Attribute Details

#file_ids ⇒ ::Array[String]?

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

Returns:

  • (::Array[String], nil)


622
# File 'lib/openai/models/responses/response_tool_search_output_item_param.rb', line 622

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

#memory_limit ⇒ OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::memory_limit?

The memory limit for the code interpreter container.

Returns:

  • (OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::memory_limit, nil)


628
629
630
631
632
633
634
# File 'lib/openai/models/responses/response_tool_search_output_item_param.rb', line 628

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

#network_policy ⇒ OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::network_policy?

Network access policy for the container.

Returns:

  • (OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::network_policy, nil)


640
641
642
643
644
645
# File 'lib/openai/models/responses/response_tool_search_output_item_param.rb', line 640

optional(
  :network_policy,
  union: -> {
    OpenAI::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::NetworkPolicy
  }
)

#type ⇒ :auto

Always auto.

Returns:

  • (:auto)


616
# File 'lib/openai/models/responses/response_tool_search_output_item_param.rb', line 616

required :type, const: :auto

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/responses/response_tool_search_output_item_param.rb', line 674

Instance Method Details

#to_hash ⇒ { ?type: :auto, ?file_ids: ::Array[String], ?memory_limit: OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::memory_limit?, ?network_policy: OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::network_policy }

Returns:

  • ({ ?type: :auto, ?file_ids: ::Array[String], ?memory_limit: OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::memory_limit?, ?network_policy: OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::network_policy })


600
601
602
603
604
605
# File 'sig/openai/models/responses/response_tool_search_output_item_param.rbs', line 600

def to_hash: -> {
  ?type: :auto,
  ?file_ids: ::Array[String],
  ?memory_limit: OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::memory_limit?,
  ?network_policy: OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::CodeInterpreter::Container::CodeInterpreterToolAuto::network_policy
}