Class: IntelliAgent::OpenAI::Messages
- Inherits:
-
Array
- Object
- Array
- IntelliAgent::OpenAI::Messages
- Defined in:
- lib/intelli_agent/openai/messages.rb
Instance Method Summary collapse
- #add(message) ⇒ Object
-
#initialize(messages = nil) ⇒ Messages
constructor
A new instance of Messages.
Constructor Details
#initialize(messages = nil) ⇒ Messages
Returns a new instance of Messages.
3 4 5 |
# File 'lib/intelli_agent/openai/messages.rb', line 3 def initialize = nil super () end |
Instance Method Details
#add(message) ⇒ Object
7 |
# File 'lib/intelli_agent/openai/messages.rb', line 7 def add() = concat(()) |