Class: OpenAI::Models::Beta::ThreadUpdateParams::ToolResources::CodeInterpreter

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

Overview

See Also:

  • OpenAI::Models::Beta::ThreadUpdateParams::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])


72
# File 'sig/openai/models/beta/thread_update_params.rbs', line 72

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

Instance Attribute Details

#file_idsArray<String>?

A 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)


76
# File 'lib/openai/models/beta/thread_update_params.rb', line 76

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

Instance Method Details

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

Returns:

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


74
# File 'sig/openai/models/beta/thread_update_params.rbs', line 74

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