Class: ActiveAgent::GenerationProvider::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prompt:, message:, raw_response: nil) ⇒ Response

Returns a new instance of Response.



8
9
10
11
12
# File 'lib/active_agent/generation_provider/response.rb', line 8

def initialize(prompt:, message:, raw_response: nil)
  @message = message
  @prompt = prompt
  @raw_response = raw_response
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/active_agent/generation_provider/response.rb', line 6

def message
  @message
end

#promptObject (readonly)

Returns the value of attribute prompt.



6
7
8
# File 'lib/active_agent/generation_provider/response.rb', line 6

def prompt
  @prompt
end

#raw_responseObject (readonly)

Returns the value of attribute raw_response.



6
7
8
# File 'lib/active_agent/generation_provider/response.rb', line 6

def raw_response
  @raw_response
end