Class: OpenAI::Models::Beta::BetaResponseOutputMessage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseOutputMessage
- Defined in:
- lib/openai/models/beta/beta_response_output_message.rb,
sig/openai/models/beta/beta_response_output_message.rbs
Defined Under Namespace
Modules: Content, Phase, Status Classes: Agent
Instance Attribute Summary collapse
-
#agent ⇒ OpenAI::Models::Beta::BetaResponseOutputMessage::Agent?
The agent that produced this item.
-
#content ⇒ Array<OpenAI::Models::Beta::BetaResponseOutputText, OpenAI::Models::Beta::BetaResponseOutputRefusal>
The content of the output message.
-
#id ⇒ String
The unique ID of the output message.
-
#phase ⇒ Symbol, ...
Labels an
assistantmessage as intermediate commentary (commentary) or the final answer (final_answer). -
#role ⇒ Symbol, :assistant
The role of the output message.
-
#status ⇒ Symbol, OpenAI::Models::Beta::BetaResponseOutputMessage::Status
The status of the message input.
-
#type ⇒ Symbol, :message
The type of the output message.
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(OpenAI::Models::Beta::BetaResponseOutputText, OpenAI::Models::Beta::BetaResponseOutputRefusal)
Instance Method Summary collapse
-
#initialize(agent_name:) ⇒ Object
constructor
The agent that produced this item.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, 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(agent_name:) ⇒ Object
The agent that produced this item.
|
|
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 54
|
Instance Attribute Details
#agent ⇒ OpenAI::Models::Beta::BetaResponseOutputMessage::Agent?
The agent that produced this item.
43 |
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 43 optional :agent, -> { OpenAI::Beta::BetaResponseOutputMessage::Agent }, nil?: true |
#content ⇒ Array<OpenAI::Models::Beta::BetaResponseOutputText, OpenAI::Models::Beta::BetaResponseOutputRefusal>
The content of the output message.
17 18 |
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 17 required :content, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::BetaResponseOutputMessage::Content] } |
#id ⇒ String
The unique ID of the output message.
11 |
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 11 required :id, String |
#phase ⇒ Symbol, ...
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.
52 |
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 52 optional :phase, enum: -> { OpenAI::Beta::BetaResponseOutputMessage::Phase }, nil?: true |
#role ⇒ Symbol, :assistant
The role of the output message. Always assistant.
24 |
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 24 required :role, const: :assistant |
#status ⇒ Symbol, OpenAI::Models::Beta::BetaResponseOutputMessage::Status
The status of the message input. One of in_progress, completed, or
incomplete. Populated when input items are returned via API.
31 |
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 31 required :status, enum: -> { OpenAI::Beta::BetaResponseOutputMessage::Status } |
#type ⇒ Symbol, :message
The type of the output message. Always message.
37 |
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 37 required :type, const: :message |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 101
|
.variants ⇒ Array(OpenAI::Models::Beta::BetaResponseOutputText, OpenAI::Models::Beta::BetaResponseOutputRefusal)
|
|
# File 'lib/openai/models/beta/beta_response_output_message.rb', line 86
|
Instance Method Details
#to_hash ⇒ {
42 |
# File 'sig/openai/models/beta/beta_response_output_message.rbs', line 42
def to_hash: -> {
|