Class: Swarm::Response
- Inherits:
-
Object
- Object
- Swarm::Response
- Defined in:
- lib/swarm/types.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#context_variables ⇒ Object
Returns the value of attribute context_variables.
-
#messages ⇒ Object
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(messages: [], agent: nil, context_variables: {}) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(messages: [], agent: nil, context_variables: {}) ⇒ Response
Returns a new instance of Response.
25 26 27 28 29 |
# File 'lib/swarm/types.rb', line 25 def initialize(messages: [], agent: nil, context_variables: {}) @messages = @agent = agent @context_variables = context_variables end |
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent.
23 24 25 |
# File 'lib/swarm/types.rb', line 23 def agent @agent end |
#context_variables ⇒ Object
Returns the value of attribute context_variables.
23 24 25 |
# File 'lib/swarm/types.rb', line 23 def context_variables @context_variables end |
#messages ⇒ Object
Returns the value of attribute messages.
23 24 25 |
# File 'lib/swarm/types.rb', line 23 def @messages end |