File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
eval_protocol/mcp/execution Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments