@@ -237,6 +237,30 @@ class EvalMetadata(BaseModel):
237237 passed : Optional [bool ] = Field (None , description = "Whether the evaluation passed based on the threshold" )
238238
239239
240+ class ExecutionMetadata (BaseModel ):
241+ """Metadata about the execution of the evaluation."""
242+
243+ invocation_id : Optional [str ] = Field (
244+ default_factory = generate_id ,
245+ description = "The ID of the invocation that this row belongs to." ,
246+ )
247+
248+ experiment_id : Optional [str ] = Field (
249+ default_factory = generate_id ,
250+ description = "The ID of the experiment that this row belongs to." ,
251+ )
252+
253+ rollout_id : Optional [str ] = Field (
254+ default_factory = generate_id ,
255+ description = "The ID of the rollout that this row belongs to." ,
256+ )
257+
258+ run_id : Optional [str ] = Field (
259+ None ,
260+ description = ("The ID of the run that this row belongs to." ),
261+ )
262+
263+
240264class RolloutStatus (BaseModel ):
241265 """Status of the rollout."""
242266
@@ -281,26 +305,6 @@ class EvaluationRow(BaseModel):
281305 description = "The status of the rollout." ,
282306 )
283307
284- invocation_id : Optional [str ] = Field (
285- default_factory = generate_id ,
286- description = "The ID of the invocation that this row belongs to." ,
287- )
288-
289- experiment_id : Optional [str ] = Field (
290- default_factory = generate_id ,
291- description = "The ID of the experiment that this row belongs to." ,
292- )
293-
294- rollout_id : Optional [str ] = Field (
295- default_factory = generate_id ,
296- description = "The ID of the rollout that this row belongs to." ,
297- )
298-
299- run_id : Optional [str ] = Field (
300- None ,
301- description = ("The ID of the run that this row belongs to." ),
302- )
303-
304308 # Ground truth reference (moved from EvaluateResult to top level)
305309 ground_truth : Optional [str ] = Field (
306310 default = None , description = "Optional ground truth reference for this evaluation."
@@ -311,6 +315,11 @@ class EvaluationRow(BaseModel):
311315 default = None , description = "The evaluation result for this row/trajectory."
312316 )
313317
318+ execution_metadata : ExecutionMetadata = Field (
319+ default_factory = ExecutionMetadata ,
320+ description = "Metadata about the execution of the evaluation." ,
321+ )
322+
314323 # LLM usage statistics
315324 usage : Optional [CompletionUsage ] = Field (
316325 default = None , description = "Token usage statistics from LLM calls during execution."
0 commit comments