Repository navigation
fix(drive_thru): call the ordering tool before confirming an order - #3136
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🔍 Devin Review: 2 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
chenghao-mou
enabled auto-merge (squash)
December 2, 2026 13:26
chenghao-mou
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
pnpm buildpasses (43/43 workspace tasks)pnpm --filter livekit-agents-examples lintpasses with two pre-existing TSDoc warningsexamples/src/testing/agent_task.test.ts(captureEmailhandoff has no matching function-call output); reproduced on a second full runcue-cliruntime framework-event validation could not be run because the executable is not installed and is unavailable from the configured PyPI/npm registries or visible LiveKit repositoriesNo changeset is included because
livekit-agents-examplesis private and excluded from the release workspace inverwalter.toml.Source diff coverage
Source diff coverage
examples/drive_thru/database.pyexamples/src/drive-thru/database.ts: ported all three changed prompt rules into the target's independently wordedCOMMON_INSTRUCTIONSprompt: acknowledge then call, call before confirming completion, and report errors as unchanged state without self-retrying.The source PR changed no tests or infrastructure files, so there are no omitted counterparts.
Source: livekit/agents#8902
Ported from livekit/agents#8902
Original PR description
Problem: The drive_thru agent's LLM (
google/gemma-4-31b-it) sometimes writes "lemme get that added", then the order result as text, with no tool call; after a tool error it writes "lemme try that again... got it!" with no second call. Theevalsdrive_thru job fails about one run in five because of this, most often in "Ordering tool fails" (17 failures from Nov 25 to Dec 2).Fix: Three existing prompt rules are reworded: the acknowledgment is followed by the call, the call comes before saying the change is done, and a tool error means nothing changed and the customer is asked to try again instead of the agent retrying in text. The model and the scenarios stay the same.
Context for reviewing and coding agents