File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
agents_mcp_usage/multi_mcp/eval_multi_mcp Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 58
58
"x_axis_options" : {
59
59
"cost" : {"column" : "total_cost" , "label" : "Cost" },
60
60
"tokens" : {"column" : "total_response_tokens" , "label" : "Tokens" },
61
+ "duration" : {"column" : "Duration" , "label" : "Duration" },
61
62
},
62
63
"color_axis" : "Duration" , # Column to use for the color scale
63
64
},
Original file line number Diff line number Diff line change @@ -419,6 +419,7 @@ def create_pareto_frontier_plot(
419
419
y_axis = (primary_metric_name , "mean" ),
420
420
total_cost = ("total_cost" , "mean" ),
421
421
total_response_tokens = ("total_response_tokens" , "mean" ),
422
+ Duration = ("Duration" , "mean" ),
422
423
color_axis = (plot_config ["color_axis" ], "mean" ),
423
424
)
424
425
.reset_index ()
@@ -428,7 +429,12 @@ def create_pareto_frontier_plot(
428
429
x_data = model_metrics [x_axis_config ["column" ]]
429
430
x_title = x_axis_config ["label" ]
430
431
hover_label = x_axis_config ["label" ]
431
- hover_format = ":.4f" if x_axis_mode == "cost" else ":.0f"
432
+ if x_axis_mode == "cost" :
433
+ hover_format = ":.4f"
434
+ elif x_axis_mode == "duration" :
435
+ hover_format = ":.2f"
436
+ else :
437
+ hover_format = ":.0f"
432
438
433
439
fig .add_trace (
434
440
go .Scatter (
You can’t perform that action at this time.
0 commit comments