Class: Swarm::Response
- Inherits:
-
Object
- Object
- Swarm::Response
- Defined in:
- lib/swarm/response.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:, context_variables:) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(messages:, agent:, context_variables:) ⇒ Response
Returns a new instance of Response.
7 8 9 10 11 |
# File 'lib/swarm/response.rb', line 7 def initialize(messages:, agent:, context_variables:) @messages = @agent = agent @context_variables = context_variables end |
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent.
5 6 7 |
# File 'lib/swarm/response.rb', line 5 def agent @agent end |
#context_variables ⇒ Object
Returns the value of attribute context_variables.
5 6 7 |
# File 'lib/swarm/response.rb', line 5 def context_variables @context_variables end |
#messages ⇒ Object
Returns the value of attribute messages.
5 6 7 |
# File 'lib/swarm/response.rb', line 5 def @messages end |