Class: OpenAI::Models::Beta::AgentSessionInputMessageParam
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::AgentSessionInputMessageParam
- Defined in:
- lib/openai/models/beta/agent_session_input_message_param.rb,
sig/openai/models/beta/agent_session_input_message_param.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#content ⇒ Array<OpenAI::Models::Beta::InputContentParam::InputText, OpenAI::Models::Beta::InputContentParam::InputImage>
The content of the message.
-
#role ⇒ Symbol, :user
The role of the message author.
-
#type ⇒ Symbol, ...
The type of the input item.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(content:, type: nil, role: :user) ⇒ Object
constructor
A user message submitted to a session.
- #to_hash ⇒ {
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_with_error, 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(content:, type: nil, role: :user) ⇒ Object
A user message submitted to a session.
|
|
# File 'lib/openai/models/beta/agent_session_input_message_param.rb', line 25
|
Instance Attribute Details
#content ⇒ Array<OpenAI::Models::Beta::InputContentParam::InputText, OpenAI::Models::Beta::InputContentParam::InputImage>
The content of the message.
11 |
# File 'lib/openai/models/beta/agent_session_input_message_param.rb', line 11 required :content, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::InputContentParam] } |
#role ⇒ Symbol, :user
The role of the message author. Always user.
17 |
# File 'lib/openai/models/beta/agent_session_input_message_param.rb', line 17 required :role, const: :user |
#type ⇒ Symbol, ...
The type of the input item. Always message.
23 |
# File 'lib/openai/models/beta/agent_session_input_message_param.rb', line 23 optional :type, enum: -> { OpenAI::Beta::AgentSessionInputMessageParam::Type } |
Instance Method Details
#to_hash ⇒ {
28 |
# File 'sig/openai/models/beta/agent_session_input_message_param.rbs', line 28
def to_hash: -> {
|