Spaces:
Runtime error
Runtime error
| # 7 phases of conversation | |
| class ConversationManager: | |
| phases = [ | |
| "discovery", "summary", "suggestion", | |
| "persuasion", "alternative", "urgency", "closing" | |
| ] | |
| def __init__(self): | |
| self.index = 0 | |
| def current_phase(self): | |
| return self.phases[self.index] | |
| def next_phase(self, user_input): | |
| if self.index < len(self.phases) - 1: | |
| self.index += 1 | |