Class: OpenAI::Models::CompoundFilter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::CompoundFilter
- Defined in:
- lib/openai/models/compound_filter.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#filters ⇒ Array<OpenAI::Models::ComparisonFilter, Object>
Array of filters to combine.
-
#type ⇒ Symbol, OpenAI::Models::CompoundFilter::Type
Type of operation: ‘and` or `or`.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filters: , type: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see CompoundFilter for more details.
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, 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(filters: , type: ) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::CompoundFilter for more details.
Combine multiple filters using ‘and` or `or`.
|
# File 'lib/openai/models/compound_filter.rb', line 19
|
Instance Attribute Details
#filters ⇒ Array<OpenAI::Models::ComparisonFilter, Object>
Array of filters to combine. Items can be ‘ComparisonFilter` or `CompoundFilter`.
11 |
# File 'lib/openai/models/compound_filter.rb', line 11 required :filters, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::CompoundFilter::Filter] } |
#type ⇒ Symbol, OpenAI::Models::CompoundFilter::Type
Type of operation: ‘and` or `or`.
17 |
# File 'lib/openai/models/compound_filter.rb', line 17 required :type, enum: -> { OpenAI::CompoundFilter::Type } |
Class Method Details
.variants ⇒ Array(OpenAI::Models::ComparisonFilter, Object)
|
# File 'lib/openai/models/compound_filter.rb', line 39
|