Skip to content

Commit 8ebbd7f

Browse files
display "effective cost" instead of cost in xray interface if available.
1 parent 459afad commit 8ebbd7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/agentlab/analyze/inspect_results.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ def summarize(sub_df):
275275
)
276276
if "stats.cum_cost" in sub_df:
277277
record["cum_cost"] = sub_df["stats.cum_cost"].sum(skipna=True).round(4)
278+
if "stats.cum_effective_cost" in sub_df:
279+
record["cum_effective_cost"] = sub_df["stats.cum_effective_cost"].sum(skipna=True).round(4)
280+
record.pop("cum_cost", None)
278281

279282
return pd.Series(record)
280283

0 commit comments

Comments
 (0)