Module: OpenAI::Models::Chat::ChatCompletionAssistantMessageParam::Content
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/openai/models/chat/chat_completion_assistant_message_param.rb,
sig/openai/models/chat/chat_completion_assistant_message_param.rbs
Overview
The contents of the assistant message. Required unless tool_calls or
function_call is specified.
Defined Under Namespace
Modules: ArrayOfContentPart
Constant Summary collapse
- ArrayOfContentPartArray =
OpenAI::Internal::Type::ArrayOf[union: -> { OpenAI::Chat::ChatCompletionAssistantMessageParam::Content::ArrayOfContentPart }]
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants
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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.variants ⇒ Array(String, Array<OpenAI::Models::Chat::ChatCompletionContentPartText, OpenAI::Models::Chat::ChatCompletionContentPartRefusal>)
|
|
# File 'lib/openai/models/chat/chat_completion_assistant_message_param.rb', line 126
|
Instance Method Details
#self?.variants ⇒ ::Array[OpenAI::Models::Chat::ChatCompletionAssistantMessageParam::content]
85 |
# File 'sig/openai/models/chat/chat_completion_assistant_message_param.rbs', line 85
def self?.variants: -> ::Array[OpenAI::Models::Chat::ChatCompletionAssistantMessageParam::content]
|