Module: OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::Tool
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/openai/models/beta/threads/message_create_params.rb
Defined Under Namespace
Classes: FileSearch
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Class Method Details
.variants ⇒ Array(OpenAI::Models::Beta::CodeInterpreterTool, OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::Tool::FileSearch)
|
# File 'lib/openai/models/beta/threads/message_create_params.rb', line 142
|
Instance Method Details
#initialize(file_id: nil, tools: nil) ⇒ Object
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/openai/models/beta/threads/message_create_params.rb', line 119 module Tool extend OpenAI::Internal::Type::Union discriminator :type variant :code_interpreter, -> { OpenAI::Beta::CodeInterpreterTool } variant :file_search, -> { OpenAI::Beta::Threads::MessageCreateParams::Attachment::Tool::FileSearch } class FileSearch < OpenAI::Internal::Type::BaseModel # @!attribute type # The type of tool being defined: `file_search` # # @return [Symbol, :file_search] required :type, const: :file_search # @!method initialize(type: :file_search) # @param type [Symbol, :file_search] The type of tool being defined: `file_search` end # @!method self.variants # @return [Array(OpenAI::Models::Beta::CodeInterpreterTool, OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::Tool::FileSearch)] end |