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

- Fix api docs
This commit is contained in:
ZhangShenao 2024-11-14 00:07:15 +08:00 committed by GitHub
parent 965286db3e
commit c89e7ce8b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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.
"""

View File

@ -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.