Skip to content

Commit d274bce

Browse files
committed
add
1 parent e69766c commit d274bce

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

eval_protocol/mcp/execution/manager.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ async def _execute_rollout(
346346
if recording_mode:
347347
policy.log_conversation_state_for_playback(rollout_idx, step - 1, conversation_history)
348348

349-
# tool indicates rollout should be terminated, call policy one last time to get the final response
350349
if rollout_end:
351350
trajectory.terminated = True
352351
trajectory.termination_reason = TerminationReason.CONTROL_PLANE_SIGNAL
@@ -387,15 +386,13 @@ async def _execute_rollout(
387386
# Log conversation state for playback if in recording mode
388387
if recording_mode:
389388
policy.log_conversation_state_for_playback(rollout_idx, step - 1, conversation_history)
390-
# Log conversation state for playback if in recording mode
391-
if recording_mode:
392-
policy.log_conversation_state_for_playback(rollout_idx, step - 1, conversation_history)
393389

394390
# Use control plane information for termination decision
395391
if rollout_end:
396392
trajectory.terminated = True
397393
trajectory.termination_reason = TerminationReason.CONTROL_PLANE_SIGNAL
398394

395+
# tool indicates rollout should be terminated, call policy one last time to get the final response
399396
_, usage_stats = await policy(tool_schema, rollout_idx, conversation_history)
400397
if usage_stats:
401398
usage_stats_list.append(usage_stats)

0 commit comments

Comments
 (0)