Skip to content

fix(drive-thru): assume quantity of one when unstated to avoid count confirmation#6463

Open
u9g wants to merge 2 commits into
mainfrom
fix/drive-thru-unstated-quantity
Open

fix(drive-thru): assume quantity of one when unstated to avoid count confirmation#6463
u9g wants to merge 2 commits into
mainfrom
fix/drive-thru-unstated-quantity

Conversation

@u9g

@u9g u9g commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

test_consecutive_order has flaked twice on main in the last week (runs 29438348555 and 29261765536, both on commits unrelated to the drive-thru eval). In both cases the model responded to "Can I get a keychup sauce and a McFlurry Oreo ?" with a clarifying question ("Just to check, did you want just one of each?") instead of calling order_regular_item, so contains_function_call found no tool call.

#6383 fixed the stated-quantity variant of this ("two mayonnaise sauces" → add twice without confirming). This extends the same instruction bullet to cover the unstated-quantity case: if no quantity is stated, assume one and add the item without confirming the count.

Testing

Ran examples/drive-thru/test_agent.py::test_consecutive_order 4 times locally with the change — 4/4 passed.

@u9g
u9g requested a review from a team as a code owner July 17, 2026 12:26

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Comment thread examples/drive-thru/database.py Outdated
"twice right away — no need to confirm the count first. \n"
"twice right away — no need to confirm the count first. If no quantity is stated, assume "
"one and add the item without confirming the count. \n"
"- Don’t assume unstated details — especially the drink in a combo. If a required detail is "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should we have a carve-out here to exclude quantity?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great idea, honestly I didn't think of it. I just implemented it though, it's a better path forward imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants