Class: OpenAI::Models::Live::DecisionUserMessage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::DecisionUserMessage
- Defined in:
- lib/openai/models/live/decision_user_message.rb,
sig/openai/models/live/decision_user_message.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#content ⇒ OpenAI::Models::Live::DecisionUserMessage::content
The text input to the model.
-
#id ⇒ String?
The unique ID of this message item.
-
#role ⇒ :user
The message role.
- #type ⇒ Symbol, ...
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(content:, id: nil, type: nil, role: :user) ⇒ DecisionUserMessage
constructor
A new instance of DecisionUserMessage.
- #to_hash ⇒ { content: OpenAI::Models::Live::DecisionUserMessage::content, ?role: :user, ?id: String?, ?type: OpenAI::Models::Live::DecisionUserMessage::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:, id: nil, type: nil, role: :user) ⇒ DecisionUserMessage
Returns a new instance of DecisionUserMessage.
|
|
# File 'lib/openai/models/live/decision_user_message.rb', line 30
|
Instance Attribute Details
#content ⇒ OpenAI::Models::Live::DecisionUserMessage::content
The text input to the model.
11 |
# File 'lib/openai/models/live/decision_user_message.rb', line 11 required :content, union: -> { OpenAI::Live::DecisionUserMessage::Content } |
#id ⇒ String?
The unique ID of this message item.
23 |
# File 'lib/openai/models/live/decision_user_message.rb', line 23 optional :id, String, nil?: true |
#role ⇒ :user
The message role. Always user.
17 |
# File 'lib/openai/models/live/decision_user_message.rb', line 17 required :role, const: :user |
#type ⇒ Symbol, ...
28 |
# File 'lib/openai/models/live/decision_user_message.rb', line 28 optional :type, enum: -> { OpenAI::Live::DecisionUserMessage::Type } |
Instance Method Details
#to_hash ⇒ { content: OpenAI::Models::Live::DecisionUserMessage::content, ?role: :user, ?id: String?, ?type: OpenAI::Models::Live::DecisionUserMessage::type_ }
41 42 43 44 45 46 |
# File 'sig/openai/models/live/decision_user_message.rbs', line 41
def to_hash: -> {
content: OpenAI::Models::Live::DecisionUserMessage::content,
?role: :user,
?id: String?,
?type: OpenAI::Models::Live::DecisionUserMessage::type_
}
|