Class: OpenAI::Models::DecisionCreateParams::Question::Predicate
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::DecisionCreateParams::Question::Predicate
- Defined in:
- lib/openai/models/decision_create_params.rb,
sig/openai/models/decision_create_params.rbs
Defined Under Namespace
Modules: Instructions
Instance Attribute Summary collapse
- #instructions ⇒ String, Array<OpenAI::Models::DecisionQuestionInputText, OpenAI::Models::DecisionQuestionInputImage, OpenAI::Models::DecisionInputJSON>
- #name ⇒ String?
-
#type ⇒ :predicate
The type of the object.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(instructions:, name: nil, type: :predicate) ⇒ Predicate
constructor
A new instance of Predicate.
- #to_hash ⇒ { instructions: OpenAI::Models::DecisionCreateParams::Question::Predicate::instructions, ?type: :predicate, ?name: String }
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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(instructions:, name: nil, type: :predicate) ⇒ Predicate
Returns a new instance of Predicate.
|
|
# File 'lib/openai/models/decision_create_params.rb', line 853
|
Instance Attribute Details
#instructions ⇒ String, Array<OpenAI::Models::DecisionQuestionInputText, OpenAI::Models::DecisionQuestionInputImage, OpenAI::Models::DecisionInputJSON>
840 |
# File 'lib/openai/models/decision_create_params.rb', line 840 required :instructions, union: -> { OpenAI::DecisionCreateParams::Question::Predicate::Instructions } |
#name ⇒ String?
851 |
# File 'lib/openai/models/decision_create_params.rb', line 851 optional :name, String |
#type ⇒ :predicate
The type of the object. Always predicate.
846 |
# File 'lib/openai/models/decision_create_params.rb', line 846 required :type, const: :predicate |
Instance Method Details
#to_hash ⇒ { instructions: OpenAI::Models::DecisionCreateParams::Question::Predicate::instructions, ?type: :predicate, ?name: String }
757 758 759 760 761 |
# File 'sig/openai/models/decision_create_params.rbs', line 757
def to_hash: -> {
instructions: OpenAI::Models::DecisionCreateParams::Question::Predicate::instructions,
?type: :predicate,
?name: String
}
|