Class: Swarm::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/swarm/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = messages
  @agent = agent
  @context_variables = context_variables
end

Instance Attribute Details

#agentObject

Returns the value of attribute agent.



5
6
7
# File 'lib/swarm/response.rb', line 5

def agent
  @agent
end

#context_variablesObject

Returns the value of attribute context_variables.



5
6
7
# File 'lib/swarm/response.rb', line 5

def context_variables
  @context_variables
end

#messagesObject

Returns the value of attribute messages.



5
6
7
# File 'lib/swarm/response.rb', line 5

def messages
  @messages
end