Class: Swarm::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#agentObject

Returns the value of attribute agent.



23
24
25
# File 'lib/swarm/types.rb', line 23

def agent
  @agent
end

#context_variablesObject

Returns the value of attribute context_variables.



23
24
25
# File 'lib/swarm/types.rb', line 23

def context_variables
  @context_variables
end

#messagesObject

Returns the value of attribute messages.



23
24
25
# File 'lib/swarm/types.rb', line 23

def messages
  @messages
end