Skip to content

Commit

Permalink
core[patch]: Update doc-strings in callbacks (#28073)
Browse files Browse the repository at this point in the history
- Fix api docs
  • Loading branch information
ZhangShenao authored Nov 13, 2024
1 parent 965286d commit c89e7ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libs/core/langchain_core/callbacks/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down
2 changes: 1 addition & 1 deletion libs/core/langchain_core/callbacks/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c89e7ce

Please sign in to comment.