Skip to content

Commit 8c2a7f7

Browse files
committed
rename RolloutStatus reason to termination_reason
1 parent cf47cc9 commit 8c2a7f7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

eval_protocol/mcp/execution/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ async def _execute_with_semaphore(idx):
171171
if trajectory.terminated:
172172
if trajectory.termination_reason == TerminationReason.ERROR:
173173
evaluation_rows[idx].rollout_status.status = "error"
174-
evaluation_rows[idx].rollout_status.reason = trajectory.control_plane_summary.get(
174+
evaluation_rows[idx].rollout_status.termination_reason = trajectory.control_plane_summary.get(
175175
"error_message", None
176176
)
177177
else:
178178
evaluation_rows[idx].rollout_status.status = "finished"
179-
evaluation_rows[idx].rollout_status.reason = trajectory.termination_reason
179+
evaluation_rows[idx].rollout_status.termination_reason = trajectory.termination_reason
180180
else:
181181
evaluation_rows[idx].rollout_status.status = "running"
182182

eval_protocol/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ class RolloutStatus(BaseModel):
229229
error: Rollout failed.
230230
stopped: Rollout terminated unexpectedly (e.g. max step, control plane signal, user stop).
231231
"""
232-
status: Literal["running", "finished", "error"] = Field(
233-
"running", description="Status of the rollout."
232+
status: Literal["running", "finished", "error"] = Field("running", description="Status of the rollout.")
233+
termination_reason: Optional[str] = Field(
234+
"", description="reason of the rollout status, mapped to values in TerminationReason"
234235
)
235-
reason: Optional[str] = Field("", description="reason of the rollout status, mapped to values in TerminationReason")
236236

237237

238238
class EvaluationRow(BaseModel):

0 commit comments

Comments
 (0)