Class: Lluminary::Result

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#outputObject (readonly)

Returns the value of attribute output.



8
9
10
# File 'lib/lluminary/result.rb', line 8

def output
  @output
end

#promptObject (readonly)

Returns the value of attribute prompt.



8
9
10
# File 'lib/lluminary/result.rb', line 8

def prompt
  @prompt
end

#raw_responseObject (readonly)

Returns the value of attribute raw_response.



8
9
10
# File 'lib/lluminary/result.rb', line 8

def raw_response
  @raw_response
end