The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Str Evaluator Mapper (#12401)
William FH4254028c5219
diff --git a/libs/langchain/langchain/smith/evaluation/string_run_evaluator.py b/libs/langchain/langchain/smith/evaluation/string_run_evaluator.pyindex 1c14017673..d803ee9a8e 100644--- a/libs/langchain/langchain/smith/evaluation/string_run_evaluator.py+++ b/libs/langchain/langchain/smith/evaluation/string_run_evaluator.py@@ -226,7 +226,7 @@ class StringExampleMapper(Serializable):return {"reference": self.serialize_chat_messages([output])if isinstance(output, dict) and output.get("type") and output.get("data")- else str(output)+ else output}def __call__(self, example: Example) -> Dict[str, str]: