Class: Assistant::TechnicalSupport::ResponseGroundingAnswerSegments::Result
- Inherits:
-
Data
- Object
- Data
- Assistant::TechnicalSupport::ResponseGroundingAnswerSegments::Result
- Defined in:
- app/services/assistant/technical_support/response_grounding_answer_segments.rb
Overview
Immutable value object returned by #call.
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#truncated ⇒ Object
readonly
Returns the value of attribute truncated.
Instance Method Summary collapse
-
#initialize(entries: [], truncated: nil) ⇒ Result
constructor
Builds an immutable answer-segmentation result.
-
#truncated? ⇒ Boolean?
Whether the answer text exceeded the audit budget.
Constructor Details
#initialize(entries: [], truncated: nil) ⇒ Result
Builds an immutable answer-segmentation result.
79 |
# File 'app/services/assistant/technical_support/response_grounding_answer_segments.rb', line 79 def initialize(entries: [], truncated: nil) = super |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries
74 75 76 |
# File 'app/services/assistant/technical_support/response_grounding_answer_segments.rb', line 74 def entries @entries end |
#truncated ⇒ Object (readonly)
Returns the value of attribute truncated
74 75 76 |
# File 'app/services/assistant/technical_support/response_grounding_answer_segments.rb', line 74 def truncated @truncated end |
Instance Method Details
#truncated? ⇒ Boolean?
Returns whether the answer text exceeded the audit budget.
82 |
# File 'app/services/assistant/technical_support/response_grounding_answer_segments.rb', line 82 def truncated? = truncated |