Skip to content

The agent engineering platform.

community[patch]: Fix MlflowCallback with none artifacts_dir (#16487)

Serena Ruan5c6e12375732
diff --git a/libs/community/langchain_community/callbacks/mlflow_callback.py b/libs/community/langchain_community/callbacks/mlflow_callback.py
index 577532a361..4070d17d61 100644
--- a/libs/community/langchain_community/callbacks/mlflow_callback.py
+++ b/libs/community/langchain_community/callbacks/mlflow_callback.py
@@ -275,7 +275,7 @@ class MlflowCallbackHandler(BaseMetadataCallbackHandler, BaseCallbackHandler):
tags: Optional[Dict] = None,
tracking_uri: Optional[str] = None,
run_id: Optional[str] = None,
- artifacts_dir: Optional[str] = None,
+ artifacts_dir: str = "",
) -> None:
"""Initialize callback handler."""
import_pandas()