Class: OpenAI::Models::Live::DecisionStoredAssistantMessage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::DecisionStoredAssistantMessage
- Defined in:
- lib/openai/models/live/decision_stored_assistant_message.rb,
sig/openai/models/live/decision_stored_assistant_message.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#content ⇒ OpenAI::Models::Live::DecisionStoredAssistantMessage::content
The text input to the model.
- #id ⇒ String
-
#phase ⇒ OpenAI::Models::Live::DecisionStoredAssistantMessage::phase?
Labels an
assistantmessage as intermediate commentary (commentary) or the final answer (final_answer). - #role ⇒ Symbol, :assistant
- #type ⇒ Symbol, ...
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, content:, phase: nil, type: nil, role: :assistant) ⇒ DecisionStoredAssistantMessage
constructor
A new instance of DecisionStoredAssistantMessage.
- #to_hash ⇒ { id: String, content: OpenAI::Models::Live::DecisionStoredAssistantMessage::content, ?role: :assistant, ?phase: OpenAI::Models::Live::DecisionStoredAssistantMessage::phase?, ?type: OpenAI::Models::Live::DecisionStoredAssistantMessage::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(id:, content:, phase: nil, type: nil, role: :assistant) ⇒ DecisionStoredAssistantMessage
Returns a new instance of DecisionStoredAssistantMessage.
|
|
# File 'lib/openai/models/live/decision_stored_assistant_message.rb', line 37
|
Instance Attribute Details
#content ⇒ OpenAI::Models::Live::DecisionStoredAssistantMessage::content
The text input to the model.
16 |
# File 'lib/openai/models/live/decision_stored_assistant_message.rb', line 16 required :content, union: -> { OpenAI::Live::DecisionStoredAssistantMessage::Content } |
#id ⇒ String
10 |
# File 'lib/openai/models/live/decision_stored_assistant_message.rb', line 10 required :id, String |
#phase ⇒ OpenAI::Models::Live::DecisionStoredAssistantMessage::phase?
Labels an assistant message as intermediate commentary (commentary) or the
final answer (final_answer). For models like gpt-5.3-codex and beyond, when
sending follow-up requests, preserve and resend phase on all assistant messages
— dropping it can degrade performance. Not used for user messages.
30 |
# File 'lib/openai/models/live/decision_stored_assistant_message.rb', line 30 optional :phase, enum: -> { OpenAI::Live::DecisionStoredAssistantMessage::Phase }, nil?: true |
#role ⇒ Symbol, :assistant
21 |
# File 'lib/openai/models/live/decision_stored_assistant_message.rb', line 21 required :role, const: :assistant |
#type ⇒ Symbol, ...
35 |
# File 'lib/openai/models/live/decision_stored_assistant_message.rb', line 35 optional :type, enum: -> { OpenAI::Live::DecisionStoredAssistantMessage::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/live/decision_stored_assistant_message.rb', line 136
|
Instance Method Details
#to_hash ⇒ { id: String, content: OpenAI::Models::Live::DecisionStoredAssistantMessage::content, ?role: :assistant, ?phase: OpenAI::Models::Live::DecisionStoredAssistantMessage::phase?, ?type: OpenAI::Models::Live::DecisionStoredAssistantMessage::type_ }
48 49 50 51 52 53 54 |
# File 'sig/openai/models/live/decision_stored_assistant_message.rbs', line 48
def to_hash: -> {
id: String,
content: OpenAI::Models::Live::DecisionStoredAssistantMessage::content,
?role: :assistant,
?phase: OpenAI::Models::Live::DecisionStoredAssistantMessage::phase?,
?type: OpenAI::Models::Live::DecisionStoredAssistantMessage::type_
}
|