Dual-Control Evaluation for Conversational Agent Tool Planning in Practice
Evaluating a conversational agent only by its final text answer is insufficient when the agent must plan and execute tool calls in a changing environment. This article examines a dual-control benchmark design for conversational agent tool planning. It explains solo and interactive test modes, outlines design challenges such as turn coordination, state synchronization, conflict handling, and permission boundaries, and describes an evaluation workflow covering scenario modeling, task generation, trajectory recording, and layered judging. It also presents layered metrics for outcomes, process, collaboration, safety, and engineering, along with practical recommendations for building a replayable and auditable evaluation system.
1. Background: Why Dual-Control Evaluation Is Needed
The core capability of conversational agents is shifting from “generating a response” to “planning and executing tool calls in a dynamic environment.” In real business scenarios, an agent often needs to read data, modify state, initiate workflows, query results, and adjust its next action based on intermediate feedback. Evaluating only the final text answer cannot show whether the agent selected the right tool, executed actions in the correct order, followed constraints, or recovered from failures.
More importantly, many tasks are not completed by the agent alone. Users may also operate the shared environment directly, for example by editing forms, confirming orders, adding parameters, undoing actions, or switching goals. In this case, the agent does not face a static input but a dynamic environment shaped by alternating user and agent operations. If an evaluation benchmark supports only a solo mode in which the agent has full control, it will miss key challenges in collaborative scenarios: state consistency, turn coordination, intent clarification, conflict handling, permission boundaries, and recoverability.
A benchmark that supports dual control therefore has clear value. It covers both solo-control scenarios, where the agent completes tasks independently, and interactive scenarios, where both the user and the agent can call tools and jointly operate a shared environment. The former tests basic planning and execution capabilities, while the latter tests collaboration and dynamic adaptation.
2. Benchmark Positioning and Core Concepts
This type of benchmark is positioned to evaluate automatic tool planning and execution by conversational agents in complex scenarios, using a dual-control environment to provide two test modes.
- Solo mode: The agent has full control and is responsible for understanding the goal, selecting tools, filling in parameters, executing operations, and advancing the task based on feedback. The user usually provides only the initial instruction or limited clarification.
- Interactive mode: Both the user and the agent can call tools. They share the same dynamic environment and collaborate by using tools in alternating turns. The agent must observe state changes caused by user operations and decide when to execute, when to ask, when to wait, and when to correct errors.
Compared with evaluations that focus only on question-answering accuracy or single-turn tool calls, dual-control evaluation places more emphasis on process quality. It not only judges whether the final state satisfies the goal, but also checks whether the execution trajectory violates constraints, whether there are invalid calls, whether the agent recovers from errors, and whether state consistency is maintained during collaboration.
3. Design Considerations for Dual-Control Modes
3.1 Solo Mode: Testing the Basic Planning and Execution Loop
Solo mode is suitable as a capability baseline. Evaluation tasks usually include an initial state, a goal state, an available tool set, business constraints, and budget limits. The agent needs to complete the loop of “observe—plan—call—feedback—revise.”
Key metrics for this mode include task success rate, average number of tool calls, invalid call rate, number of constraint violations, error recovery success rate, step efficiency, and cost and latency. The advantage of solo mode is that it has fewer variables and strong reproducibility, making it suitable for identifying problems such as incorrect tool selection, incorrect parameter filling, incorrect ordering, and insufficient understanding of constraints.
3.2 Interactive Mode: Testing Collaboration in a Shared Dynamic Environment
Interactive mode is closer to real collaboration. A user policy may proactively operate tools, or it may supplement information, modify goals, or correct errors after the agent acts. The agent must handle partial observability, alternating operations, and state drift.
The main challenges include:
- Turn coordination: Both parties may act, and the agent needs to determine whether it should execute now or wait for the user to act.
- State synchronization: User operations may change the environment state, and the agent cannot rely on stale observations.
- Intent clarification: User instructions may be incomplete or may change during the process, and the agent needs to ask questions at low cost to confirm.
- Conflict resolution: Operations from both parties may overwrite each other, requiring conflict detection and compensation or rollback.
- Permission boundaries: The agent can call tools only within its authorized scope, and sensitive operations require confirmation.
- Explainability and auditability: Collaboration trajectories need to be replayable so that judgments can be made and problems can be located.
4. Evaluation Workflow and Judging Methods
A practical evaluation workflow usually includes scenario modeling, task generation, execution recording, result judging, and metric aggregation.
4.1 Scenario Modeling
For each scenario, define entities, tools, constraints, initial state, goal state, and user policy. Tools should have clear input and output semantics, preconditions, and side effects. Shared state needs version numbers or event sequences so that operations from both parties can be tracked.
4.2 Task Generation
Tasks should cover normal paths, branch paths, exception paths, and long-tail constraints. Tool failures, missing parameters, users changing goals mid-task, and state conflicts can be injected to observe the agent’s recovery and collaboration capabilities.
4.3 Execution and Recording
During execution, record the full trajectory: observations, decisions, tool calls, parameters, returned results, state snapshots, turn ownership, latency, and cost. The trajectory is the basis for reproducibility and auditability.
4.4 Judging
Judging can be divided into three layers: whether the final state achieves the goal; whether the process violates constraints; and whether collaboration quality meets the standard. Automated judging is suitable for structured states and rule constraints, while human review is suitable for semantically ambiguous or high-risk scenarios.
The following is illustrative pseudocode that expresses only the evaluation loop and does not depend on any specific interface:
state = env.reset(task)history = []while not env.done(state):if mode == "solo":action = agent.plan(observe(state, history))state, feedback = env.step(action)else:turn = scheduler.next(user_policy, agent, state)if turn == "user":action = user_policy.act(state, history)else:action = agent.plan(observe(state, history))state, feedback = env.step(action)history.append(log(action, feedback, state.version))verdict = judge(final_state=state, trajectory=history, constraints=task.constraints)
5. Metric Design and Result Interpretation
A layered metric design is recommended to avoid relying on a single success rate.
- Outcome layer: Task success rate, goal state achievement rate, and constraint satisfaction rate.
- Process layer: Tool selection accuracy, parameter correctness, call order compliance rate, invalid call rate, and average number of steps.
- Collaboration layer: Clarification effectiveness, conflict detection rate, conflict recovery rate, turn efficiency, and number of user interventions.
- Safety layer: Number of unauthorized calls, sensitive operation confirmation rate, and audit completeness rate.
- Engineering layer: Average latency, call cost, and replay success rate.
When interpreting public evaluation results, pay attention to task distribution, number of tools, state complexity, user simulation policy, judging strictness, and budget limits. Scores from different versions or configurations should not be compared directly without context. Score improvements may come from stronger planning capability, but they may also come from optimized tool descriptions, improved clarification strategies, or changes in judging criteria. Evaluation reports should therefore include both stratified task results and failure type distributions.
6. Engineering Implementation Recommendations
In engineering practice, the evaluation system can be divided into agent orchestration, a tool gateway, shared state storage, event logs, a user simulator, a judge, and observability modules. The tool gateway handles authorization, parameter validation, idempotency, and auditing; shared state storage handles version management; the logging service collects call chains; object storage saves replay packages; the message queue carries asynchronous evaluation tasks; and monitoring and alerting track anomalies and cost.
For development order, it is recommended to start with solo mode and then move to interactive mode: first ensure clear tool semantics, trackable state, and reproducible judging, and then introduce user simulation and alternating operations. For high-risk tools, follow least privilege, sensitive operation confirmation, idempotency, and compensation design. Only when replayable logs, state versions, failure recovery, and permission boundaries are solidly implemented can dual-control evaluation truly support continuous optimization of conversational agents.
