Class: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content
- Defined in:
- lib/openai/models/beta/threads/runs/file_search_tool_call.rb,
sig/openai/models/beta/threads/runs/file_search_tool_call.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#text ⇒ String?
The text content of the file.
-
#type ⇒ Symbol, ...
The type of the content.
Attributes inherited from Internal::Type::BaseModel
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(text: nil, type: nil) ⇒ Object
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/openai/models/beta/threads/runs/file_search_tool_call.rb', line 161 class Content < OpenAI::Internal::Type::BaseModel # @!attribute text # The text content of the file. # # @return [String, nil] optional :text, String # @!attribute type # The type of the content. # # @return [Symbol, OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::Type, nil] optional( :type, enum: -> { OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::Type } ) # @!method initialize(text: nil, type: nil) # @param text [String] The text content of the file. # # @param type [Symbol, OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::Type] The type of the content. # The type of the content. # # @see OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content#type module Type extend OpenAI::Internal::Type::Enum TEXT = :text # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#text ⇒ String?
The text content of the file.
166 |
# File 'lib/openai/models/beta/threads/runs/file_search_tool_call.rb', line 166 optional :text, String |
#type ⇒ Symbol, ...
The type of the content.
172 173 174 175 |
# File 'lib/openai/models/beta/threads/runs/file_search_tool_call.rb', line 172 optional( :type, enum: -> { OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::Type } ) |
Instance Method Details
#to_hash ⇒ {
151 |
# File 'sig/openai/models/beta/threads/runs/file_search_tool_call.rbs', line 151
def to_hash: -> {
|