From 5b9f44f8a561f0d42e9383c8115a329b13b8b99b Mon Sep 17 00:00:00 2001 From: Bagatur Date: Tue, 17 Dec 2024 13:32:52 -0800 Subject: [PATCH] python[patch]: evaluate accept list target --- python/langsmith/evaluation/_arunner.py | 2 +- python/langsmith/evaluation/_runner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/langsmith/evaluation/_arunner.py b/python/langsmith/evaluation/_arunner.py index 39d324ba7..7b29241e6 100644 --- a/python/langsmith/evaluation/_arunner.py +++ b/python/langsmith/evaluation/_arunner.py @@ -294,7 +294,7 @@ async def aevaluate( blocking=blocking, **kwargs, ) - elif isinstance(target, tuple): + elif isinstance(target, (list, tuple)): msg = ( "Running a comparison of two existing experiments asynchronously is not " "currently supported. Please use the `evaluate()` method instead and make " diff --git a/python/langsmith/evaluation/_runner.py b/python/langsmith/evaluation/_runner.py index b54c8b858..e755fe423 100644 --- a/python/langsmith/evaluation/_runner.py +++ b/python/langsmith/evaluation/_runner.py @@ -353,7 +353,7 @@ def evaluate( blocking=blocking, **kwargs, ) - elif isinstance(target, tuple): + elif isinstance(target, (list, tuple)): invalid_args = { "num_repetitions": num_repetitions > 1, "experiment": bool(experiment),