Class: OpenAI::Models::Beta::AgentSessionItem::AgentMessage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::AgentSessionItem::AgentMessage
- Defined in:
- lib/openai/models/beta/agent_session_item.rb,
sig/openai/models/beta/agent_session_item.rbs
Instance Attribute Summary collapse
-
#content ⇒ Array<OpenAI::Models::Beta::OutputText, OpenAI::Models::Beta::AgentContent::EncryptedContent>
The content exchanged between the agents.
-
#id ⇒ String
The ID of the message.
-
#recipient_agent_id ⇒ String
The ID or name of the receiving agent.
-
#sender_agent_id ⇒ String
The ID or name of the sending agent.
-
#turn_id ⇒ String
The ID of the turn that contains this item.
-
#type ⇒ Symbol, :agent_message
The item type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, content:, recipient_agent_id:, sender_agent_id:, turn_id:, type: :agent_message) ⇒ Object
constructor
A message exchanged between agent threads.
- #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(id:, content:, recipient_agent_id:, sender_agent_id:, turn_id:, type: :agent_message) ⇒ Object
A message exchanged between agent threads.
|
|
# File 'lib/openai/models/beta/agent_session_item.rb', line 159
|
Instance Attribute Details
#content ⇒ Array<OpenAI::Models::Beta::OutputText, OpenAI::Models::Beta::AgentContent::EncryptedContent>
The content exchanged between the agents.
133 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 133 required :content, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::AgentContent] } |
#id ⇒ String
The ID of the message.
127 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 127 required :id, String |
#recipient_agent_id ⇒ String
The ID or name of the receiving agent.
139 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 139 required :recipient_agent_id, String |
#sender_agent_id ⇒ String
The ID or name of the sending agent.
145 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 145 required :sender_agent_id, String |
#turn_id ⇒ String
The ID of the turn that contains this item.
151 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 151 required :turn_id, String |
#type ⇒ Symbol, :agent_message
The item type. Always agent_message.
157 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 157 required :type, const: :agent_message |
Instance Method Details
#to_hash ⇒ {
102 |
# File 'sig/openai/models/beta/agent_session_item.rbs', line 102
def to_hash: -> {
|