Class: OpenAI::Models::Beta::AssistantUpdateParams::ToolResources::CodeInterpreter

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

Overview

See Also:

  • OpenAI::Models::Beta::AssistantUpdateParams::ToolResources#code_interpreter

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

#initializeCodeInterpreter

Returns a new instance of CodeInterpreter.

Parameters:

  • file_ids: (::Array[String])


219
# File 'sig/openai/models/beta/assistant_update_params.rbs', line 219

def initialize: (?file_ids: ::Array[String]) -> void

Instance Attribute Details

#file_idsArray<String>?

Overrides the list of file IDs made available to the code_interpreter tool. There can be a maximum of 20 files associated with the tool.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


335
# File 'lib/openai/models/beta/assistant_update_params.rb', line 335

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

Instance Method Details

#to_hash{ file_ids: ::Array[String] }

Returns:

  • ({ file_ids: ::Array[String] })


221
# File 'sig/openai/models/beta/assistant_update_params.rbs', line 221

def to_hash: -> { file_ids: ::Array[String] }