diff --git a/libs/core/langchain_core/callbacks/file.py b/libs/core/langchain_core/callbacks/file.py index 7ea1ff76f8aa2..961b0c9bc241e 100644 --- a/libs/core/langchain_core/callbacks/file.py +++ b/libs/core/langchain_core/callbacks/file.py @@ -13,7 +13,8 @@ class FileCallbackHandler(BaseCallbackHandler): """Callback Handler that writes to a file. Parameters: - file: The file to write to. + filename: The file to write to. + mode: The mode to open the file in. Defaults to "a". color: The color to use for the text. """ diff --git a/libs/core/langchain_core/callbacks/manager.py b/libs/core/langchain_core/callbacks/manager.py index 9a25734f9371f..821939d1a609c 100644 --- a/libs/core/langchain_core/callbacks/manager.py +++ b/libs/core/langchain_core/callbacks/manager.py @@ -1298,7 +1298,7 @@ def on_chat_model_start( run_id: Optional[UUID] = None, **kwargs: Any, ) -> list[CallbackManagerForLLMRun]: - """Run when LLM starts running. + """Run when chat model starts running. Args: serialized (Dict[str, Any]): The serialized LLM.