Class: Phronomy::TrustPipeline::Result
- Inherits:
-
Struct
- Object
- Struct
- Phronomy::TrustPipeline::Result
- Defined in:
- lib/phronomy/trust_pipeline.rb
Overview
Immutable value object returned by #invoke.
Instance Attribute Summary collapse
-
#citations ⇒ Array<Hash>
readonly
[excerpt:, ...].
-
#confidence ⇒ Float
readonly
Combined confidence score (0.0–1.0).
-
#iterations ⇒ Integer
readonly
Number of draft-review cycles executed.
-
#output ⇒ String
readonly
The final answer text.
-
#review_notes ⇒ Array<String>
readonly
Reviewer feedback for each cycle.
-
#trusted ⇒ Boolean
(also: #trusted?)
readonly
True when confidence >= threshold.
Instance Attribute Details
#citations ⇒ Array<Hash> (readonly)
Returns [excerpt:, ...].
51 52 53 54 |
# File 'lib/phronomy/trust_pipeline.rb', line 51 Result = Struct.new(:output, :confidence, :citations, :iterations, :review_notes, :trusted, keyword_init: true) do # @return [Boolean] true when confidence >= threshold alias_method :trusted?, :trusted end |
#confidence ⇒ Float (readonly)
Returns combined confidence score (0.0–1.0).
51 52 53 54 |
# File 'lib/phronomy/trust_pipeline.rb', line 51 Result = Struct.new(:output, :confidence, :citations, :iterations, :review_notes, :trusted, keyword_init: true) do # @return [Boolean] true when confidence >= threshold alias_method :trusted?, :trusted end |
#iterations ⇒ Integer (readonly)
Returns number of draft-review cycles executed.
51 52 53 54 |
# File 'lib/phronomy/trust_pipeline.rb', line 51 Result = Struct.new(:output, :confidence, :citations, :iterations, :review_notes, :trusted, keyword_init: true) do # @return [Boolean] true when confidence >= threshold alias_method :trusted?, :trusted end |
#output ⇒ String (readonly)
Returns the final answer text.
51 52 53 54 |
# File 'lib/phronomy/trust_pipeline.rb', line 51 Result = Struct.new(:output, :confidence, :citations, :iterations, :review_notes, :trusted, keyword_init: true) do # @return [Boolean] true when confidence >= threshold alias_method :trusted?, :trusted end |
#review_notes ⇒ Array<String> (readonly)
Returns reviewer feedback for each cycle.
51 52 53 54 |
# File 'lib/phronomy/trust_pipeline.rb', line 51 Result = Struct.new(:output, :confidence, :citations, :iterations, :review_notes, :trusted, keyword_init: true) do # @return [Boolean] true when confidence >= threshold alias_method :trusted?, :trusted end |
#trusted ⇒ Boolean (readonly) Also known as: trusted?
Returns true when confidence >= threshold.
51 52 53 54 |
# File 'lib/phronomy/trust_pipeline.rb', line 51 Result = Struct.new(:output, :confidence, :citations, :iterations, :review_notes, :trusted, keyword_init: true) do # @return [Boolean] true when confidence >= threshold alias_method :trusted?, :trusted end |