Class: Phronomy::TrustPipeline::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/phronomy/trust_pipeline.rb

Overview

Immutable value object returned by #invoke.

Instance Attribute Summary collapse

Instance Attribute Details

#citationsArray<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.

Returns:

  • (Array<Hash>)

    [excerpt:, ...]



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

#confidenceFloat (readonly)

Returns combined confidence score (0.0–1.0).

Returns:

  • (Float)

    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

#iterationsInteger (readonly)

Returns number of draft-review cycles executed.

Returns:

  • (Integer)

    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

#outputString (readonly)

Returns the final answer text.

Returns:

  • (String)

    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_notesArray<String> (readonly)

Returns reviewer feedback for each cycle.

Returns:

  • (Array<String>)

    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

#trustedBoolean (readonly) Also known as: trusted?

Returns true when confidence >= threshold.

Returns:

  • (Boolean)

    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