AiAgent / agent /conversation_phases.py
tarek29910's picture
Upload 22 files
b303183 verified
raw
history blame
423 Bytes
# 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