Class: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage
- Defined in:
- lib/openai/models/decision_create_params.rb,
sig/openai/models/decision_create_params.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#content ⇒ OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::content
A text string or an ordered list of text, image, and JSON parts.
- #role ⇒ Symbol, :user
- #type ⇒ Symbol, ...
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(content:, type: nil, role: :user) ⇒ DecisionInputUserMessage
constructor
A new instance of DecisionInputUserMessage.
- #to_hash ⇒ { content: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::content, ?role: :user, ?type: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::type_ }
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(content:, type: nil, role: :user) ⇒ DecisionInputUserMessage
Returns a new instance of DecisionInputUserMessage.
|
|
# File 'lib/openai/models/decision_create_params.rb', line 156
|
Instance Attribute Details
#content ⇒ OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::content
A text string or an ordered list of text, image, and JSON parts.
138 139 140 141 |
# File 'lib/openai/models/decision_create_params.rb', line 138 required( :content, union: -> { OpenAI::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::Content } ) |
#role ⇒ Symbol, :user
146 |
# File 'lib/openai/models/decision_create_params.rb', line 146 required :role, const: :user |
#type ⇒ Symbol, ...
151 152 153 154 |
# File 'lib/openai/models/decision_create_params.rb', line 151 optional( :type, enum: -> { OpenAI::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::Type } ) |
Instance Method Details
#to_hash ⇒ { content: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::content, ?role: :user, ?type: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::type_ }
210 211 212 213 214 |
# File 'sig/openai/models/decision_create_params.rbs', line 210
def to_hash: -> {
content: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::content,
?role: :user,
?type: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputUserMessage::type_
}
|