Skip to content

The agent engineering platform.

core[patch]: Update doc-strings in callbacks (#28073)

ZhangShenaoc89e7ce8b5d4
diff --git a/libs/core/langchain_core/callbacks/file.py b/libs/core/langchain_core/callbacks/file.py
index 7ea1ff76f8..961b0c9bc2 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 9a25734f93..821939d1a6 100644
--- a/libs/core/langchain_core/callbacks/manager.py
+++ b/libs/core/langchain_core/callbacks/manager.py
@@ -1298,7 +1298,7 @@ class CallbackManager(BaseCallbackManager):
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.