Class: OpenAI::Models::Live::DecisionStoredUserMessage::Content::Part::InputJSON
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::DecisionStoredUserMessage::Content::Part::InputJSON
- Defined in:
- lib/openai/models/live/decision_stored_user_message.rb,
sig/openai/models/live/decision_stored_user_message.rbs
Defined Under Namespace
Modules: Data
Instance Attribute Summary collapse
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(data:, type: :input_json) ⇒ InputJSON
constructor
A new instance of InputJSON.
- #to_hash ⇒ { data: OpenAI::Models::Live::DecisionStoredUserMessage::Content::Part::InputJSON::data, ?type: :input_json }
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(data:, type: :input_json) ⇒ InputJSON
Returns a new instance of InputJSON.
|
|
# File 'lib/openai/models/live/decision_stored_user_message.rb', line 144
|
Instance Attribute Details
#data ⇒ Hash{Symbol=>Object}+
137 |
# File 'lib/openai/models/live/decision_stored_user_message.rb', line 137 required :data, union: -> { OpenAI::Live::DecisionStoredUserMessage::Content::Part::InputJSON::Data } |
#type ⇒ Symbol, :input_json
142 |
# File 'lib/openai/models/live/decision_stored_user_message.rb', line 142 required :type, const: :input_json |
Instance Method Details
#to_hash ⇒ { data: OpenAI::Models::Live::DecisionStoredUserMessage::Content::Part::InputJSON::data, ?type: :input_json }
139 140 141 142 |
# File 'sig/openai/models/live/decision_stored_user_message.rbs', line 139
def to_hash: -> {
data: OpenAI::Models::Live::DecisionStoredUserMessage::Content::Part::InputJSON::data,
?type: :input_json
}
|