Skip to content

Commit 5e582cc

Browse files
authored
feat: add only success filter toggle for traces (#1047)
1 parent d647bea commit 5e582cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rdagent/log/ui/ds_trace.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ def summarize_win():
475475
min_id, max_id = get_state_data_range(state.data)
476476
info0, info1, info2, info3, info4, info5 = st.columns([1, 1, 1, 1, 1, 1])
477477
show_trace_dag = info0.toggle("Show trace DAG", key="show_trace_dag")
478+
only_success = info0.toggle("Only Success", key="only_success")
478479
with info1.popover("LITELLM", icon="⚙️"):
479480
st.write(state.data.get("settings", {}).get("LITELLM_SETTINGS", "No settings found."))
480481
with info2.popover("RD_AGENT", icon="⚙️"):
@@ -613,6 +614,8 @@ def summarize_win():
613614
fig.data[1].name = "Cumulative COST($)"
614615
st.plotly_chart(fig)
615616

617+
if only_success:
618+
df = df[df["Feedback"] == "✅"]
616619
st.dataframe(df[df.columns[~df.columns.isin(["Hypothesis", "Reason", "Others"])]])
617620

618621
# scores curve

0 commit comments

Comments
 (0)