nemo_voice_agent.evaluation.scenarios.data.restaurant

View as Markdown

Module Contents

Classes

NameDescription
BurgerBaconComboOrder a bacon cheeseburger combo and a milkshake at Burger Barn.
BurgerClassicOrder a classic burger with onion rings at Burger Barn.
BurgerSpicyFeastOrder a spicy jalapeno burger, french fries, a lemonade, and onion rings at Burger Barn.
BurgerVeggieMilkshakeOrder a veggie burger and a strawberry milkshake at Burger Barn.
DeliGrilledCheeseSoupOrder a grilled cheese with chicken noodle soup and bottled water at Deli Delights.
DeliItalianSubLunchOrder an Italian sub, tomato soup, potato chips, and fresh squeezed OJ at Deli Delights.
DeliTurkeyClubOrder a turkey club sandwich and a coffee at Deli Delights.
PizzaPartyOrderOrder two BBQ chicken pizzas, a caesar salad, and two fountain sodas at Pizza Palace.
PizzaPepperoniOrder a pepperoni pizza with extra cheese at Pizza Palace.
PizzaVeggieComboOrder a veggie supreme pizza with garlic bread and an iced tea at Pizza Palace.
RestaurantBaseScenarioBase class for all restaurant evaluation scenarios.
WaitlistJoinThenDropUser joins the waitlist, asks how many people are ahead, then drops when they hear there are 10.

Data

BURGER_BARN_MENU

BURGER_BARN_MENU_ITEMS

DELI_DELIGHTS_MENU

DELI_DELIGHTS_MENU_ITEMS

EXPECTED_ORDER_FORMAT

INITIAL_WAITLIST

PIZZA_PALACE_MENU

PIZZA_PALACE_MENU_ITEMS

_INITIAL_WAITLIST_DATA

API

class nemo_voice_agent.evaluation.scenarios.data.restaurant.BurgerBaconCombo()

Bases: RestaurantBaseScenario

Order a bacon cheeseburger combo and a milkshake at Burger Barn.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__burger_bacon_combo'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.BurgerClassic()

Bases: RestaurantBaseScenario

Order a classic burger with onion rings at Burger Barn.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__burger_classic'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.BurgerSpicyFeast()

Bases: RestaurantBaseScenario

Order a spicy jalapeno burger, french fries, a lemonade, and onion rings at Burger Barn.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__burger_spicy_feast'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.BurgerVeggieMilkshake()

Bases: RestaurantBaseScenario

Order a veggie burger and a strawberry milkshake at Burger Barn.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__burger_veggie_milkshake'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.DeliGrilledCheeseSoup()

Bases: RestaurantBaseScenario

Order a grilled cheese with chicken noodle soup and bottled water at Deli Delights.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__deli_grilled_cheese_soup'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.DeliItalianSubLunch()

Bases: RestaurantBaseScenario

Order an Italian sub, tomato soup, potato chips, and fresh squeezed OJ at Deli Delights.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__deli_italian_sub_lunch'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.DeliTurkeyClub()

Bases: RestaurantBaseScenario

Order a turkey club sandwich and a coffee at Deli Delights.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__deli_turkey_club'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.PizzaPartyOrder()

Bases: RestaurantBaseScenario

Order two BBQ chicken pizzas, a caesar salad, and two fountain sodas at Pizza Palace.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__pizza_party_order'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.PizzaPepperoni()

Bases: RestaurantBaseScenario

Order a pepperoni pizza with extra cheese at Pizza Palace.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__pizza_pepperoni'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.PizzaVeggieCombo()

Bases: RestaurantBaseScenario

Order a veggie supreme pizza with garlic bread and an iced tea at Pizza Palace.

agent_actions
Actions
agent_resources
Resources
description
name
= 'restaurant__pizza_veggie_combo'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
class nemo_voice_agent.evaluation.scenarios.data.restaurant.RestaurantBaseScenario()

Bases: Scenario

Base class for all restaurant evaluation scenarios. Provides sensible defaults for agent persona, agent task, and user resources so that concrete subclasses only need to override what differs.

agent_persona
Persona
agent_task
Task
max_duration
= 180
noise_config
success_signals
user_resources
Resources
class nemo_voice_agent.evaluation.scenarios.data.restaurant.WaitlistJoinThenDrop()

Bases: RestaurantBaseScenario

User joins the waitlist, asks how many people are ahead, then drops when they hear there are 10.

_SAM
agent_actions
Actions
agent_persona
Persona
agent_resources
Resources
agent_task
Task
description
max_duration
= 120
name
= 'restaurant__waitlist_join_then_drop'
reference_answer
user_actions
Actions
user_persona
Persona
user_task
Task
nemo_voice_agent.evaluation.scenarios.data.restaurant.BURGER_BARN_MENU = f'
## Burger Barn Menu
Burgers:
1. Classic Burger
- price: $7.49
- Beef p...
nemo_voice_agent.evaluation.scenarios.data.restaurant.BURGER_BARN_MENU_ITEMS = ['Classic Burger', 'Bacon Cheeseburger', 'Mushroom Swiss Burger', 'Spicy Jalapen...
nemo_voice_agent.evaluation.scenarios.data.restaurant.DELI_DELIGHTS_MENU = f'
## Deli Delights Menu
Sandwiches:
1. Turkey Club Sandwich
- price: $8.49
...
nemo_voice_agent.evaluation.scenarios.data.restaurant.DELI_DELIGHTS_MENU_ITEMS = ['Turkey Club Sandwich', 'Italian Sub', 'Grilled Cheese', 'BLT Sandwich', 'Tuna ...
nemo_voice_agent.evaluation.scenarios.data.restaurant.EXPECTED_ORDER_FORMAT = {'items': [{'name': '???', 'unit_price': '???', 'quantity': '???'}], 'customer_n...
nemo_voice_agent.evaluation.scenarios.data.restaurant.INITIAL_WAITLIST = json.dumps(_INITIAL_WAITLIST_DATA)
nemo_voice_agent.evaluation.scenarios.data.restaurant.PIZZA_PALACE_MENU = f'
## Pizza Palace Menu
Pizzas (12-inch):
1. Pepperoni Pizza
- price: $9.99
...
nemo_voice_agent.evaluation.scenarios.data.restaurant.PIZZA_PALACE_MENU_ITEMS = ['Pepperoni Pizza', 'Margherita Pizza', 'BBQ Chicken Pizza', 'Veggie Supreme Piz...
nemo_voice_agent.evaluation.scenarios.data.restaurant._INITIAL_WAITLIST_DATA = [{'name': 'Alice', 'phone': '413-927-0586', 'party_size': 2}, {'name': 'Bob', 'p...