The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Permit function eval on llm data type (#19287)
William FH89af30807b53
diff --git a/libs/langchain/langchain/smith/evaluation/runner_utils.py b/libs/langchain/langchain/smith/evaluation/runner_utils.pyindex b4c7ab4a8e..35c7b8a7e8 100644--- a/libs/langchain/langchain/smith/evaluation/runner_utils.py+++ b/libs/langchain/langchain/smith/evaluation/runner_utils.py@@ -9,7 +9,6 @@ import inspectimport loggingimport uuidfrom datetime import datetime, timezone-from enum import Enumfrom typing import (TYPE_CHECKING,Any,@@ -430,13 +429,6 @@ def _setup_evaluation(run_type = "llm"else:run_type = "chain"- if data_type in (DataType.chat, DataType.llm):- val = data_type.value if isinstance(data_type, Enum) else data_type- raise ValueError(- "Cannot evaluate a chain on dataset with "- f"data_type={val}. "- "Please specify a dataset with the default 'kv' data type."- )chain = llm_or_chain_factory()run_inputs = chain.input_keys if isinstance(chain, Chain) else Nonerun_outputs = chain.output_keys if isinstance(chain, Chain) else None