The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Use salt instead of datetime (#8653)
William FH206901fa011c
diff --git a/libs/langchain/langchain/smith/evaluation/runner_utils.py b/libs/langchain/langchain/smith/evaluation/runner_utils.pyindex 070def0600..2464f7c741 100644--- a/libs/langchain/langchain/smith/evaluation/runner_utils.py+++ b/libs/langchain/langchain/smith/evaluation/runner_utils.py@@ -6,7 +6,7 @@ import asyncioimport functoolsimport itertoolsimport logging-from datetime import datetime+import uuidfrom enum import Enumfrom typing import (Any,@@ -234,12 +234,12 @@ def _get_project_name("""if project_name is not None:return project_name- current_time = datetime.now().strftime("%Y-%m-%d-%H-%M-%S")if isinstance(llm_or_chain_factory, BaseLanguageModel):model_name = llm_or_chain_factory.__class__.__name__else:model_name = llm_or_chain_factory().__class__.__name__- return f"{current_time}-{model_name}"+ hex = uuid.uuid4().hex+ return f"{hex}-{model_name}"## Shared Validation Utilities