Class: Agents::Response

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

Direct Known Subclasses

GptResponse, UnhandleableRequestResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_text) ⇒ Response

Returns a new instance of Response.



4
5
6
# File 'lib/responses/response.rb', line 4

def initialize(response_text)
  @response_text = response_text
end

Instance Attribute Details

#response_textObject (readonly)

Returns the value of attribute response_text.



3
4
5
# File 'lib/responses/response.rb', line 3

def response_text
  @response_text
end