From c89e7ce8b5d413aebd17ea87de4596464f6073cf Mon Sep 17 00:00:00 2001 From: ZhangShenao <15201440436@163.com> Date: Thu, 14 Nov 2024 00:07:15 +0800 Subject: [PATCH] core[patch]: Update doc-strings in callbacks (#28073) - Fix api docs --- libs/core/langchain_core/callbacks/file.py | 3 ++- libs/core/langchain_core/callbacks/manager.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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.