Class: ActiveAgent::GenerationProvider::Response
- Inherits:
-
Object
- Object
- ActiveAgent::GenerationProvider::Response
- Defined in:
- lib/active_agent/generation_provider/response.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
Instance Method Summary collapse
-
#initialize(prompt:, message:, raw_response: nil) ⇒ Response
constructor
A new instance of Response.
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 = @prompt = prompt @raw_response = raw_response end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/active_agent/generation_provider/response.rb', line 6 def @message end |
#prompt ⇒ Object (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_response ⇒ Object (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 |