Class: Lluminary::Result
- Inherits:
-
Object
- Object
- Lluminary::Result
- Defined in:
- lib/lluminary/result.rb
Overview
Represents the result of a task execution. Contains the output data and any metadata about the execution.
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#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(raw_response:, output:, prompt:) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(raw_response:, output:, prompt:) ⇒ Result
Returns a new instance of Result.
10 11 12 13 14 |
# File 'lib/lluminary/result.rb', line 10 def initialize(raw_response:, output:, prompt:) @raw_response = raw_response @output = OpenStruct.new(output) @prompt = prompt end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
8 9 10 |
# File 'lib/lluminary/result.rb', line 8 def output @output end |
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
8 9 10 |
# File 'lib/lluminary/result.rb', line 8 def prompt @prompt end |
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
8 9 10 |
# File 'lib/lluminary/result.rb', line 8 def raw_response @raw_response end |