From 6e012b5f66e934fbc43b586c69369e671c03774f Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Mon, 24 Feb 2025 14:23:54 -0800 Subject: [PATCH] Wrap results --- python/langsmith/evaluation/evaluator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/langsmith/evaluation/evaluator.py b/python/langsmith/evaluation/evaluator.py index 899d08d84..5377f809c 100644 --- a/python/langsmith/evaluation/evaluator.py +++ b/python/langsmith/evaluation/evaluator.py @@ -300,7 +300,9 @@ def _format_result( result.source_run_id = source_run_id return result elif isinstance(result, list): - return [self._format_result(r, source_run_id) for r in result] + result = { + "results": result + } result = _format_evaluator_result(result) return self._coerce_evaluation_results(result, source_run_id)