Class: OpenAI::Models::Beta::ThreadCreateParams::ToolResources

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

Defined Under Namespace

Classes: CodeInterpreter, FileSearch

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

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_with_error, 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) ⇒ Object

Parameters:

  • file_ids (Array<String>) (defaults to: nil) —

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



# File 'lib/openai/models/beta/thread_create_params.rb', line 226


Instance Attribute Details

#code_interpreter ⇒ OpenAI::Models::Beta::ThreadCreateParams::ToolResources::CodeInterpreter?



219
# File 'lib/openai/models/beta/thread_create_params.rb', line 219

optional :code_interpreter, -> { OpenAI::Beta::ThreadCreateParams::ToolResources::CodeInterpreter }

#file_search ⇒ OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch?



224
# File 'lib/openai/models/beta/thread_create_params.rb', line 224

optional :file_search, -> { OpenAI::Beta::ThreadCreateParams::ToolResources::FileSearch }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


242
# File 'sig/openai/models/beta/thread_create_params.rbs', line 242

def to_hash: -> {