Module: OpenAI::Models::DecisionInputMessage::Assistant::Content
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/openai/models/decision_input_message.rb,
sig/openai/models/decision_input_message.rbs
Overview
A text string or an ordered list of output text and refusal parts.
Defined Under Namespace
Modules: Part
Constant Summary collapse
- PartsArray =
OpenAI::Internal::Type::ArrayOf[ union: -> { OpenAI::DecisionInputMessage::Assistant::Content::Part } ]
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
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
Class Method Details
.variants ⇒ Array(String, Array<OpenAI::Models::DecisionInputMessage::Assistant::Content::Part::OutputText, OpenAI::Models::DecisionInputMessage::Assistant::Content::Part::Refusal>)
|
|
# File 'lib/openai/models/decision_input_message.rb', line 275
|
Instance Method Details
#initialize(refusal:, type: :refusal) ⇒ Object
|
|
# File 'lib/openai/models/decision_input_message.rb', line 270
|