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