Skip to content

Commit

Permalink
Wrap results
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Feb 24, 2025
1 parent d2ffc47 commit 6e012b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/langsmith/evaluation/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6e012b5

Please sign in to comment.