Class: OpenAI::Models::BetaTool::Beta::BetaTool::CodeInterpreter

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_tool.rbs

Defined Under Namespace

Modules: AllowedCaller, Container

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



284
# File 'sig/openai/models/beta/beta_tool.rbs', line 284

def initialize: (

Instance Attribute Details

#allowed_callers::Array[OpenAI::Models::Beta::BetaTool::CodeInterpreter::allowed_caller]?

Returns the value of attribute allowed_callers.

Returns:

  • (::Array[OpenAI::Models::Beta::BetaTool::CodeInterpreter::allowed_caller], nil)


282
283
284
# File 'sig/openai/models/beta/beta_tool.rbs', line 282

def allowed_callers
  @allowed_callers
end

#containerOpenAI::Models::Beta::BetaTool::CodeInterpreter::container

Returns the value of attribute container.

Returns:

  • (OpenAI::Models::Beta::BetaTool::CodeInterpreter::container)


278
279
280
# File 'sig/openai/models/beta/beta_tool.rbs', line 278

def container
  @container
end

#type:code_interpreter

Returns the value of attribute type.

Returns:

  • (:code_interpreter)


280
281
282
# File 'sig/openai/models/beta/beta_tool.rbs', line 280

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


290
# File 'sig/openai/models/beta/beta_tool.rbs', line 290

def to_hash: -> {