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
WARNING: These citations are extracted from the LLM's own response via the ReviewAgent and are not verified against any external knowledge base, document store, or URL.
-
#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)
WARNING: These citations are extracted from the LLM's own response via the ReviewAgent and are not verified against any external knowledge base, document store, or URL. Do not treat them as authoritative without independent verification.
56 57 58 59 |
# File 'lib/phronomy/trust_pipeline.rb', line 56 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).
56 57 58 59 |
# File 'lib/phronomy/trust_pipeline.rb', line 56 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.
56 57 58 59 |
# File 'lib/phronomy/trust_pipeline.rb', line 56 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.
56 57 58 59 |
# File 'lib/phronomy/trust_pipeline.rb', line 56 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.
56 57 58 59 |
# File 'lib/phronomy/trust_pipeline.rb', line 56 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.
56 57 58 59 |
# File 'lib/phronomy/trust_pipeline.rb', line 56 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 |