Skip to content

Commit 595439d

Browse files
committed
Refactor greeting pool
1 parent 66d460f commit 595439d

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

coffee_ws/src/coffee_voice_agent/scripts/livekit_voice_agent.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -554,21 +554,9 @@ async def say_with_emotion(self, text: str, emotion: str = None):
554554
def get_random_greeting(self) -> str:
555555
"""Get a random greeting from the greeting pool"""
556556
import random
557+
from utils.greeting_data import GREETING_POOL
557558

558-
greeting_pool = [
559-
"excited:Hey there! Welcome to the Sui Hub Grand Opening in Athens! I'm your friendly coffee consultant robot. How can I help you today?",
560-
"friendly:Hello! I'm your coffee consultant at the Sui Hub Grand Opening! Ready to help with coffee information and recommendations. How can I help you today?",
561-
"enthusiastic:Welcome to our amazing blockchain coffee experience! I'm here to help with all your coffee questions and guide you through our ordering process!",
562-
"cheerful:Great to see you! What coffee wisdom can I share with you today?",
563-
"warm:Welcome to our coffee command center! How can I help caffeinate your conference experience?",
564-
"professional:Welcome to the Sui Hub! I'm your dedicated blockchain coffee consultant. Ready to help with coffee info and recommendations!",
565-
"curious:Hello! Ready for some blockchain coffee knowledge? What sounds interesting to you?",
566-
"playful:Hey there! Time for some coffee consultation! What can I tell you about our amazing brews?",
567-
"helpful:Welcome! Perfect timing for coffee info. How can I help guide your caffeine journey?",
568-
"friendly:Hi! Welcome back to our bustling coffee hub! What coffee questions are brewing on your mind?"
569-
]
570-
571-
selected_greeting = random.choice(greeting_pool)
559+
selected_greeting = random.choice(GREETING_POOL)
572560
logger.info(f"🎭 Selected random greeting: {selected_greeting[:50]}...")
573561

574562
return selected_greeting
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""Greeting data constants for the coffee agent"""
2+
3+
# Pool of greeting messages for the coffee agent
4+
GREETING_POOL = [
5+
"excited:Hey there! Welcome to the Sui Hub Grand Opening in Athens! I'm your friendly coffee consultant robot. How can I help you today?",
6+
"friendly:Hello! I'm your coffee consultant at the Sui Hub Grand Opening! Ready to help with coffee information and recommendations. How can I help you today?",
7+
"enthusiastic:Welcome to our amazing blockchain coffee experience! I'm here to help with all your coffee questions and guide you through our ordering process!",
8+
"cheerful:Great to see you! What coffee wisdom can I share with you today?",
9+
"warm:Welcome to our coffee command center! How can I help caffeinate your conference experience?",
10+
"professional:Welcome to the Sui Hub! I'm your dedicated blockchain coffee consultant. Ready to help with coffee info and recommendations!",
11+
"curious:Hello! Ready for some blockchain coffee knowledge? What sounds interesting to you?",
12+
"playful:Hey there! Time for some coffee consultation! What can I tell you about our amazing brews?",
13+
"helpful:Welcome! Perfect timing for coffee info. How can I help guide your caffeine journey?",
14+
"friendly:Hi! Welcome back to our bustling coffee hub! What coffee questions are brewing on your mind!"
15+
]

0 commit comments

Comments
 (0)