You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/drive-thru/agent.py
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,7 @@ async def order_combo_meal(
124
124
Regular items like a single cheeseburger cannot be made into a meal unless such a combo explicitly exists.
125
125
126
126
Only call this function once the user has clearly specified both a drink and a sauce — always ask for them if they're missing.
127
+
Never infer or assume the drink — if the user has not explicitly named a drink, ask for it before calling this tool.
127
128
128
129
A meal can only be Medium or Large; Small is not an available option.
129
130
Drink and fries sizes can differ (e.g., “large fries but a medium Coke”).
@@ -293,6 +294,7 @@ async def order_regular_item(
293
294
Call this when the user orders **a single item on its own**, not as part of a Combo Meal or Happy Meal.
294
295
295
296
The customer must provide clear and specific input. For example, item variants such as flavor must **always** be explicitly stated.
297
+
Never call this tool when size information is still needed — if the item has multiple sizes and the user has not specified one, ask for the size before calling.
0 commit comments