Module: OpenAI::Models::Beta::ThreadCreateParams::Message::Role
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/openai/models/beta/thread_create_params.rb
Overview
The role of the entity that is creating the message. Allowed values include:
-
‘user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.
-
‘assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.
Constant Summary collapse
- USER =
:user
- ASSISTANT =
:assistant
Method Summary
Methods included from Internal::Type::Enum
==, ===, coerce, dump, hash, inspect, to_sorbet_type, values
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type