Class: Assistant::TechnicalSupport::ResponseGroundingPreparation::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/assistant/technical_support/response_grounding_preparation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(applicable: nil, assistant_message_id: nil) ⇒ Result

Builds an immutable preparation result.

Parameters:

  • applicable (Boolean, nil) (defaults to: nil)

    whether the Technical Support policy applies

  • assistant_message_id (Integer, nil) (defaults to: nil)

    response carrying the pending snapshot



20
# File 'app/services/assistant/technical_support/response_grounding_preparation.rb', line 20

def initialize(applicable: nil, assistant_message_id: nil) = super

Instance Attribute Details

#applicableObject (readonly)

Returns the value of attribute applicable

Returns:

  • (Object)

    the current value of applicable



15
16
17
# File 'app/services/assistant/technical_support/response_grounding_preparation.rb', line 15

def applicable
  @applicable
end

#assistant_message_idObject (readonly)

Returns the value of attribute assistant_message_id

Returns:

  • (Object)

    the current value of assistant_message_id



15
16
17
# File 'app/services/assistant/technical_support/response_grounding_preparation.rb', line 15

def assistant_message_id
  @assistant_message_id
end

Instance Method Details

#applicable?Boolean?

Reports whether this turn belongs to the Technical Support funnel.

Returns:

  • (Boolean, nil)

    applicability state



25
# File 'app/services/assistant/technical_support/response_grounding_preparation.rb', line 25

def applicable? = applicable