Skip to content

Commit 7fdb872

Browse files
committed
break early
1 parent 886fa38 commit 7fdb872

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

eval_protocol/adapters/langfuse.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ def convert_trace_to_evaluation_row(
110110
elif tag.startswith("row_id:") and not row_id:
111111
row_id = tag.split(":", 1)[1]
112112

113+
if (
114+
execution_metadata.invocation_id
115+
and execution_metadata.experiment_id
116+
and execution_metadata.rollout_id
117+
and execution_metadata.run_id
118+
and row_id
119+
):
120+
break # Break early if we've found all the metadata we need
121+
113122
return EvaluationRow(
114123
messages=messages,
115124
tools=tools,

0 commit comments

Comments
 (0)