[docs]classBaseState(ABC):""" Base class for all assessment states. """@propertydefcontext(self):returnself._context@context.setterdefcontext(self,context):self._context=context
[docs]@abstractmethoddefgenerate_response(self,user_input,conversation_id,assessment_id):""" Generate a response based on the user input and the current state of the assessment. Args: user_input: The input from the user. conversation_id: The ID of the current conversation. assessment_id: The ID of the current assessment. Returns: str: The response generated by the current state. """pass