Spaces:
Runtime error
Runtime error
File size: 423 Bytes
b303183 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# 7 phases of conversation
class ConversationManager:
phases = [
"discovery", "summary", "suggestion",
"persuasion", "alternative", "urgency", "closing"
]
def __init__(self):
self.index = 0
@property
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
|