Skip to content

Manik Rana

Engineer at TurboML

How do agents handle a change of plans?

How well do agents handle someone changing their request halfway through a conversation? We built AgentChangeBench to study this in customer support conversations, with tasks covering banking, airline and retail.

I wrote most of the simulation and evaluation code with Ahan M R as my mentor. Our paper was accepted at the NeurIPS 2025 Workshop on Multi-Turn Interactions in Large Language Models.

tl;dr Agents often acknowledged the goal shift without completing it.

An example conversation

Each run is a chat between two models. One plays a support agent with tools that read and update a test database. The other plays a customer with a list of requests that the agent cannot see.

Here's an example with Claude 3.7 Sonnet playing both the customer and the agent in the banking domain. The customer asks for her account balances. The agent finds a single checking account:

Agent
Checking account ending in 5678: $45,230.18. This is the only account I see associated with your profile. Is there anything else you'd like to know about your account?
Maria
That's it? I thought I had a savings account too. Double-check. And while you're at it, I need my recent statements. Can you email those to me right away?
Maria's goal shift is in amber.

Maria questions the answer and asks for her statements in the same message. The agent now has to handle the new request while the first is still unresolved.

Setup

We forked τ²-bench and used its airline and retail environments. I added a banking domain with its own database, tools and policy. We rewrote tasks to include goal changes and added new ones across all three domains.

There are 315 tasks: 50 for banking, 100 for airline and 165 for retail. Each task gives the customer model an ordered list of goals. This is part of Maria's task:

data/tau2/domains/banking/tasks.json
"persona": "MEDIUM_1",
"instructions": {
  "known_info": "You are Maria Santos with phone number +15551234567, ...",
  "task_instructions": "Check account balances, then request recent statements."
},
"goal_shifts": {
  "required_shifts": 1,
  "goals": ["account_info", "statements"]
}

Each task also specifies the tools that can complete a step. τ²-bench expected a fixed tool name and arguments, which could reject a valid alternative. I added action sets so a customer lookup could accept either get_customer_by_phone or get_customer_by_id.

I tightened the customer model’s prompt after some conversations ran out of turns before the second goal came up. The customer would keep answering verification questions instead of moving on. To combat this we added instructions for when to introduce the next request:

  • Move on after four messages on one goal, even if it isn't complete.
  • Move on earlier if the agent offers a transfer, says it can't help, or asks whether there's anything else.
  • Never mention the goal list.

Maria asks for her statements after the agent asks whether she needs anything else.

Each task also has one of five customer personas: polite, distracted, impatient, curious or suspicious. This lets us test whether agents handle the same goal change differently depending on how the customer phrases it.

Customer
That's it? I thought I had a savings account too. Double-check. And while you're at it, I need my recent statements. Can you email those to me right away?
Five customers asking for their statements.

How do you measure goal shifts?

We scored the conversations on task success, tool use, and the time taken to respond to a goal change.

τ²-bench scored each task on tool calls, required information, and behavior. Each category was pass/fail, and the results were multiplied together. If the agent failed any category the entire task scored zero.

For AgentChangeBench, I changed this to give partial credit within each category and combine them into a weighted score. In the banking example above, the agent made two of the three expected tool calls and provided the balance but omitted the statement ID. τ²-bench’s scoring gave that run zero despite it passing both behavior checks. Our scoring gives it 0.725.

We call the resulting metric Merged pull request task success rate (TSR):

TSR=0.25C+0.45A+0.30N\mathrm{TSR} = 0.25C + 0.45A + 0.30N
  • CC is the fraction of required information the agent gave the customer.
  • AA is the fraction of expected actions it took.
  • NN is the fraction of behavior checks it passed.

Each action gets 0.5 points for an accepted tool and 0.5 for matching its expected arguments.

Only 256 of the 2,643 runs with the three API models passed every check. Under τ²-bench’s scoring, roughly nine in ten runs would therefore have received zero, regardless of how much of the task they completed.

We track tool use with two other metrics. Tool use efficiency (TUE) combines the fraction of calls that ran without errors with the fraction that had valid parameters. Parameters were valid in almost every run, so TUE mostly reflected execution errors.

Tool call redundancy rate (TCRR) measures repeated calls. A call counts as redundant if an identical call appeared in the agent's previous three turns, or if the same call appears more than twice within one turn.

Goal-shift recovery time (GSRT) counts messages from the customer's new request to three points in the conversation:

  • The agent acknowledges the request (ack).
  • The agent calls a relevant tool (tool).
  • The agent completes the request (outcome).

A separate judge model reads each completed transcript alongside the goal list to identify goal shifts and the agent's responses. We use its annotations to calculate GSRT and a recovery rate:

Recovery rate=Goal shifts acknowledged without a handoffTotal goal shifts \mathrm{Recovery\ rate} = \frac{\text{Goal shifts acknowledged without a handoff}} {\text{Total goal shifts}}
AgentThinking
JamesAgentTools
Goal shift
TSR
0%
TUE
100%
GSRT ack
0
GSRT tool
0
GSRT outcome
0
How TSR, TUE and GSRT score James's conversation.

Initially, the customer tagged its goal shifts and the support agent tagged when it recognized them. This leaked the evaluation criteria as it prompted the support agent to look for changes when we wanted to see it notice them on its own. In Merged pull request #8, I replaced those tags with the separate judge. Its annotations are saved with the transcripts so we can recalculate scores without rerunning the conversations.

Findings

We ran GPT-4o, Claude 3.7 Sonnet and Gemini 2.5 Flash three times per task. Each model played both the customer and the agent. I also served Qwen2.5-14B on rented A100s using vLLM. Our budget covered one evaluation pass per domain for Qwen.

Airline results
ModelTSRTUERecoveryTransfer
GPT-4o
60%
99%
92%
8%
Claude 3.7 Sonnet
70%
99%
79%
20%
Gemini 2.5 Flash
41%
99%
49%
—
Qwen2.5-14B
60%
97%
85%
9%
Higher is better for TSR, TUE and Recovery. Lower is better for Transfer.

On airline tasks, GPT-4o had a recovery rate of 92% against Claude's 79%. Claude had the higher task success rate. The most common failure was transferring the customer to a human too early. In banking, Claude and Gemini each did this for about 40% of goal changes.

In retail, agents often made the expected tool calls but failed to give the customer the required information. GPT-4o scored 63% on the action component vs 11% on the information component. GPT-4o also repeated tool calls frequently (89% were redundant).

Qwen2.5-14B matched GPT-4o's airline task-success score in its single evaluation pass. We would need more runs to know whether that result holds.

Closing thoughts

This was my first research project. I learned how to build evaluation sets, test models and serve them with vLLM. Working on the simulation and evaluation code taught me more about harness engineering than I'd learned on any youtube video. I read a lot of papers along the way and came out with a much better understanding of model evaluation.

It was also hard and tiring. Doing this alongside my regular job took a lot of energy, and I don't think I could have finished it without the support I received.

Although the work was accepted at two workshops, I feel there's still much more to explore. AI is developing so quickly that the next model release could already make these findings outdated. That pace is part of what makes the field exciting to me, and I'd like to do more research.

The conversations, judge outputs and evaluation code are in the AgentChangeBench repository.